知识卡片
上下文图记录模型边界与接触点
上下文图是项目当前模型版图:找出每套正在使用的模型,包括非面向对象子系统隐含的模型;给每个限界上下文命名,并标出模型之间的接触点、翻译和共享处。团队应能用上下文名称说清某段代码属于哪套模型,而非只用负责人姓名指代。
图、文本清单或团队讨论都可作载体;关键是所有相关人员对边界和连接性质有共同理解。团队分工与沟通距离会影响实际边界,因此图也服务于项目协作。
结构图:
flowchart LR
subgraph A[上下文 A]
MA[模型 A]
end
subgraph B[上下文 B]
MB[模型 B]
end
MA --> T[明确的接触点与翻译]
T --> MB
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第14章|Context Map · 查看原书依据
Identify each model in play on the project and define its BOUNDED CONTEXT. This includes the implicit models of non-object-oriented subsystems. Name each BOUNDED CONTEXT, and make the names part of the UBIQUITOUS LANGUAGE. Describe the points of contact between the models, outlining explicit translation for any communication and highlighting any sharing.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第103章《Context Map》(源文件:_epub-src/0321125215_ch14lev1sec3.html;单元01、04)
- 结论依据:原文定义上下文图需识别所有模型、命名边界和接触点,并要求共享理解。
- 原始内容:Identify each model in play on the project and define its BOUNDED CONTEXT . This includes the implicit models of non-object-oriented subsystems. Name each BOUNDED CONTEXT , and make the names part of the UBIQUITOUS LANGUAGE . Describe the points of contact between the models, outlining explicit translation for any communication and highlighting any sharing.