知识卡片
跨限界上下文结构要允许局部差异与外部约束
大型结构往往要跨多个限界上下文,因此不能把某个局部模型的特殊假设强加全项目。随着真实项目迭代,它应贴近领域的概念轮廓,同时允许不同上下文按自身需求变化。
面对外部系统或遗留系统的既有模型,团队可能无法改动它们;可调整整体结构、明确与外部的连接方式,或让结构足够松以包容这些现实约束。原书列的是设计选项,需按具体项目取舍。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第16章|Evolving Order · 查看原书依据
Through iteration on a real project, a structure will lose features that tightly bind it to a particular model and evolve features that correspond to CONCEPTUAL CONTOURS of the domain.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第128章《Evolving Order》(源文件:_epub-src/0321125215_ch16lev1sec1.html;单元02)
- 结论依据:原文要求大型结构在跨上下文时避免绑死局部模型,并列出外部与遗留系统约束下的三类处理方式。
- 原始内容:A large-scale structure generally needs to be applicable across BOUNDED CONTEXTS. Through iteration on a real project, a structure will lose features that tightly bind it to a particular model and evolve features that correspond to CONCEPTUAL CONTOURS of the domain. This doesn't mean that it will have no assumptions about the model, but it will not impose upon the entire project ideas tailored to a particular local situation. It has to leave freedom for development teams in distinct CONTEXTS to vary the model in ways that address their local needs. [...] This could be handled by changing the structure to better fit the specific external elements. It could be handled by specifying ways in which the application relates to externals. It might be handled by making the structure loose enough to flex around awkward realities.
- 转录说明:原 EPUB 强调标签边界造成的术语前空格已规范转录;`[...]` 标明外部或遗留系统约束的引入句省略。