知识卡片
用API围出变更边界
遗留系统的用户多、设计复杂、集成紧时,直接改内部实现容易牵动多方。先以 API 明确模块边界,把相关能力收在一起、减少跨模块依赖,才能把后续替换与演进限制在可控范围。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
As an architect, APIs can help you evolve a system. An API can be a boundary to a module or component, and this makes an API a natural point of leverage when trying to ensure a system is highly cohesive and loosely coupled.
参考来源
- 位置:《Mastering API Architecture》第8章《Redesigning Applications to API-Driven Architectures》之《Why Use APIs to Evolve a System?》(源文件:_epub-src/OEBPS/ch08.xhtml)
- 结论依据:原文把广泛使用和紧密集成列为改造难点,提出 API 作为模块边界以提高内聚、降低耦合。
- 原始内容:As an architect, APIs can help you evolve a system. An API can be a boundary to a module or component, and this makes an API a natural point of leverage when trying to ensure a system is highly cohesive and loosely coupled.