知识卡片

普通读书笔记卡 · 3327

服务边界隔离实现变更

理解等级:中级

服务公开契约像边界,只要输入、输出和行为保持兼容,语言、框架、存储和内部组织方式都可在边界内调整。真正降低变更波及面的前提是消费者只能经契约访问,不绕到内部数据。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第6章《Principles of Proper Services》(源文件:`_epub-src/OPS/ch06.xhtml`,归一化正文 [16865:21022)) - 结论依据:原文说契约形成保护内部实现的边界,保持公开契约和向后兼容时,可把变更影响限制在边界内。 - 原始内容:In effect, the contract creates a perimeter or boundary, protecting the internals of the service. Figure 6.5: Service boundary The service boundary is like a wall; anything can be on the other side of the wall. As the caller, you cannot observe it, and in fact you are protected from any and all details.