pyKun
V2EX  ›  问与答

服务升级, DB 兼容性问题

  •  
  •   pyKun · Oct 29, 2015 · 3250 views
    This topic created in 3887 days ago, the information mentioned may be changed or developed.
    目标:

    希望服务升级的时候,业务不中断。

    问题:

    兼容性问题在每个环节都有,其中有关 DB 兼容性设计的问题应该如何去做?(前提,表的设计是考虑到兼容问题的)

    假设旧数据格式迁移到新数据格式没有兼容性问题,那迁移的那段时间还是业务中断的,现在有什么办法切换这个中断么?

    把 DB 做成一个池?
    3 replies    2015-10-29 16:07:06 +08:00
    wy315700
        1
    wy315700  
       Oct 29, 2015   ❤️ 1
    同时写入新 DB 和旧 DB ,并且把之前的数据同步,然后切换
    xiewenlongs
        2
    xiewenlongs  
       Oct 29, 2015
    恩,我是按 @wy315700 说的做的, 不知道有什么其他方案
    pyKun
        3
    pyKun  
    OP
       Oct 29, 2015
    @xiewenlongs 正在写工具,待我操作下,总结下经验:)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2498 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    ♥ Do have faith in what you're doing.