知识卡片
遗留系统按可发布功能小步退役
原书的渐进迁移循环是:选一个可在迭代内补到新系统的旧功能;补充[[防腐层隔离外部模型语义]]所需适配;实现并部署。新功能可能分多轮实现,但仍按小单位规划;实际发布可合并成较大批次。
功能在现场运行后,清除不再需要的防腐层代码,再判断旧模块能否移除;难拆的旧系统可先搁置无用模块。防腐层在迁移中会随依赖变化而增减,不能预设只会收缩。选择顺序可参考能否减少翻译,但业务与发布因素也会影响它。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第14章|Transformations · 查看原书依据
In any given iteration: Identify specific functionality of the legacy that could be added to one of the favored systems within a single iteration. Identify additions that will be required in the ANTICORRUPTION LAYER. Implement. Deploy.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第115章《Transformations》(源文件:_epub-src/0321125215_ch14lev1sec14.html;单元03)
- 结论依据:原文列出每次迁移的功能选择、防腐层修改、实现与部署,以及上线后清理和重复迭代的步骤。
- 原始内容(单次迁移):In any given iteration: Identify specific functionality of the legacy that could be added to one of the favored systems within a single iteration. Identify additions that will be required in the ANTICORRUPTION LAYER. Implement. Deploy.
- 原始内容(规划与发布):Sometimes it will be necessary to spend more than one iteration writing equivalent functionality to a unit that can be phased out of the legacy, but still plan the new functions in small, iteration-sized units, only waiting multiple iterations for deployment. [...] It would be nice for development if these small, incremental changes could be rolled out to production, but usually it is necessary to organize bigger releases.
- 原始内容(上线后):Once it is finally running in the field: Identify any unnecessary parts of the ANTICORRUPTION LAYER and remove them. Consider excising the now-unused modules of the legacy system, though this may not turn out to be practical. [...] It may be possible to just ignore the unused parts until a later time when the remainder has been phased out and the whole thing can be switched off.
- 原始内容(循环与排序):Repeat this over and over. The legacy system should become less involved in the business, and eventually it will be possible to see the light at the end of the tunnel and finally switch off the old system. Meanwhile, the ANTICORRUPTION LAYER will alternately shrink and swell as various combinations increase or decrease the interdependence between the systems. All else being equal, of course, you should migrate first those functions that lead to smaller ANTICORRUPTION LAYERS. But other factors are likely to dominate, and you may have to live with some hairy translations during some transitions.
- 转录说明:两处 `[...]` 分别标明部署发布的其他条件及遗留系统可拆性分析的省略;原 EPUB 列表项在纯文本抽取时重复,此处每项只转录一次。