知识卡片
模式迁移扩展后收缩
先新增兼容结构,使旧新程序可共存,再迁移与核对数据,切换读写后才移除旧结构。先删旧字段再发布新程序,会让滚动更新中的旧实例失败;每步需明确真源和回退窗口。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Deployment Strategies and Production Readiness · 查看原书依据
Changes must maintain backward compatibility during the deployment period. This often means implementing schema changes in multiple steps, ensuring both old and new versions can operate simultaneously. Organizations might need to maintain multiple database versions or implement sophisticated migration strategies.
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第13章《Deployment Strategies and Production Readiness》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch13.xhtml)
- 结论依据:原文的机制或对比支持以下核心判断:先新增兼容结构,使旧新程序可共存,再迁移与核对数据,切换读写后才移除旧结构。 本卡将相邻说明中的适用限制保留为解释。
- 原始内容:Changes must maintain backward compatibility during the deployment period. This often means implementing schema changes in multiple steps, ensuring both old and new versions can operate simultaneously. Organizations might need to maintain multiple database versions or implement sophisticated migration strategies.