知识卡片
翻译模型压缩接口
开放主机服务在生产者侧用发布语言隐藏内部模型,只暴露消费者需要的信息,使同一复杂实现拥有更简单接口。防腐层在消费者侧把外部模型翻译为合用模型,也可独立为服务,分开业务与集成复杂度。两者从相反方向减少跨边界知识泄漏,服务深度因而增加。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 第14章 微服务
原书出处 · 1 处
- 微服务 · 查看原书依据
Introducing the integration-oriented model, the published language, reduces the system’s global complexity. First, it allows us to evolve the service’s implementation without impacting its consumers: the new implementation model can be translated to the existing published language. Second, the published language exposes a more restrained model. It is designed around integration needs. It encapsulates the
参考来源
- 位置:《Learning Domain-Driven Design》第14章《微服务》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch14.html)
- 结论依据:原文分别说明发布语言与独立防腐层如何压缩公开接口、降低局部及全局复杂度。
- 原始内容:Introducing the integration-oriented model, the published language, reduces the system’s global complexity. First, it allows us to evolve the service’s implementation without impacting its consumers: the new implementation model can be translated to the existing published language. Second, the published language exposes a more restrained model. It is designed around integration needs. It encapsulates the