← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1971.o.1.b.4.d.1.c.4.a.3.a.7.a

分配检查器隔离外部销售模型

理解等级:中级

原书假设货运订舱系统新增配额检查,配额来自另一个销售管理系统。若 Booking Application 直接采用对方的类别和接口,外部模型会渗入本系统的领域语言。作者设置 Allocation Checker,只暴露订舱所需的分配能力,把外部词汇翻译为本领域概念;底层通信接口可藏在其后。它是针对当前需求的防腐层示例,不承担所有销售系统功能。参见[[外部维度映射能力限定集成边界]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第07章|Introducing a New Feature: Allocation Checking · 查看原书依据

      If the Booking Application interacts with it directly, our application will have to accommodate the other system's design, which will make it harder to keep a clear MODEL-DRIVEN DESIGN and will confuse the UBIQUITOUS LANGUAGE. Instead, let's create another class whose job it will be to translate between our model and the language of the Sales Management System. It will not be a general translation mechanism.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第59章《原书第07章|Introducing a New Feature: Allocation Checking》(源文件:_epub-src/0321125215_ch07lev1sec11.html;图7.9–7.10) - 结论依据:原文把直接接入的模型污染与选择性翻译相对照,并将 Allocation Checker 命名为当前系统的职责。 - 原始内容:If the Booking Application interacts with it directly, our application will have to accommodate the other system's design, which will make it harder to keep a clear MODEL-DRIVEN DESIGN and will confuse the UBIQUITOUS LANGUAGE . Instead, let's create another class whose job it will be to translate between our model and the language of the Sales Management System . It will not be a general translation mechanism.