知识卡片
旧系统契约可分阶段改进
给既有组件新增服务接口时,旧数据模型和现有消费者可能限制第一次设计。可分阶段交付过渡契约,同时主动识别新消费者和改进机会,避免把临时兼容形式固定成长期边界。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第6章《Principles of Proper Services》(源文件:`_epub-src/OPS/ch06.xhtml`,归一化正文 [29532:33773))
- 结论依据:原文指出现有组件暴露接口时可能在实现先行与契约先行之间切换,初期契约会反映旧模型并作妥协。
- 原始内容:Existing component In this scenario, you need to create a service or expose an API on top of an implementation that already exists. Maybe you might have a classical monolith or desktop application that needs to expose a function to an outside caller, or an existing service with a terrible contract that is either too big or too small and needs a rebuild, or any number of other architectures or situations.