此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
限界上下文界定模型一致范围
模型的词语和规则只有在一定条件下才有特定含义。Bounded Context 明确这套模型适用的软件范围,并与团队分工、应用使用处、代码库和数据库模式对应。边界内要维护术语和规则的一致;边界外允许别的模型存在,不要求它们说同一种领域语言。
划边界不是只给代码加命名空间,还要让团队知道哪些东西必须共同维护。原书用细胞膜作比喻:边界区分内外,也提示跨界交互需要明确处理。
结构图:
flowchart LR
T[团队职责] --> B[Bounded Context]
A[应用使用范围] --> B
C[代码库与数据库模式] --> B
B --> M[界内模型术语与规则一致]
B --> X[界外可用其他模型]
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第14章|Bounded Context · 查看原书依据
Explicitly define the context within which a model applies. Explicitly set boundaries in terms of team organization, usage within specific parts of the application, and physical manifestations such as code bases and database schemas. Keep the model strictly consistent within these bounds, but don't be distracted or confused by issues outside.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第100章《Bounded Context》(源文件:_epub-src/0321125215_ch14lev1sec1_split_000.html;单元01)
- 结论依据:原文要求在团队组织、应用范围、代码与数据库模式上显式划界,在界内严格保持统一;附图14inf01为细胞膜比喻。
- 原始内容:Explicitly define the context within which a model applies. Explicitly set boundaries in terms of team organization, usage within specific parts of the application, and physical manifestations such as code bases and database schemas. Keep the model strictly consistent within these bounds, but don't be distracted or confused by issues outside.