知识卡片

普通读书笔记卡 · 3417

双向门迁移分阶段保留回滚

理解等级:高级

格式或接口切换应先让新版本读取新旧两种格式,初期仍写旧格式;验证后再改写新格式,最终删除旧支持。每一步需确保旧版本可回退读取当前数据。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第9章《Code Migrations》(源文件:`_epub-src/OPS/ch09.xhtml`,归一化正文 [42255:46522)) - 结论依据:原文引用 XML 到 JSON 的分阶段迁移说明回滚安全。 - 原始内容:first reading both formats but writing the old one XML, then at some point reading both but just writing the new one. Eventually, just read/write the final format, JSON. Migration roadblocks So far in this chapter, we have learned the difference between red and green migrations; we should start with inventories, use cases, and POCs, and we learn the tradeoffs of migrations around migration target, difficulty, customer impact, and execution.