← 返回起始笔记位置

知识卡片

结构图卡 · 1968.b.1

防腐层隔离外来模型

理解等级:中级

防腐层由下游将上游模型翻译为自己需要的概念,保护本地通用语言。它适用于核心子域不能受外部模型束缚、遗留模型混乱或上游频繁变化的情况。变化被限制在翻译机制中,但该机制本身仍需实现与维护;不能只把网络代理称为防腐层。

结构图:

flowchart LR
 U[上游模型] --> T[下游防腐层翻译]
 T --> D[下游业务模型]
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 集成限界上下文 · 查看原书依据

      Instead, it can translate the upstream bounded context’s model into a model tailored to its own needs via an anticorruption layer, as shown in Figure 4-5. Figure 4-5. Integration through an anticorruption layer The anticorruption layer pattern addresses scenarios in which it is not desirable or worth the effort to conform to the supplier’s model,

    参考来源

    - 位置:《Learning Domain-Driven Design》第4章《集成限界上下文》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch04.html) - 结论依据:原文对该概念的定义、应用条件及相邻概念的比较支撑本卡解释。 - 原始内容:Instead, it can translate the upstream bounded context’s model into a model tailored to its own needs via an anticorruption layer, as shown in Figure 4-5. Figure 4-5. Integration through an anticorruption layer The anticorruption layer pattern addresses scenarios in which it is not desirable or worth the effort to conform to the supplier’s model,