知识卡片
模块边界可用依赖规则守护
模块化单体可把领域模块列表、目录或命名空间边界写成自动检查:拒绝游离于既定模块之外的代码,再限制特定模块之间的调用及总依赖数。原书示例把“5个耦合点”作为演示阈值,不应照搬为所有系统标准。独立构件需要在各模块分别执行检查;这扩展了[[依赖规则可进入持续构建]]到领域模块。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- The Modular Monolith Architecture Style · 查看原书依据
Another way to govern a modular monolith architecture is to control the amount of communication between modules.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第11章《The Modular Monolith Architecture Style》(阅读计划第14项;源文件:`OEBPS/ch11.html`)
- 结论依据:原文给出命名空间合规、模块依赖数量和禁止特定调用的三类治理示例。
- 原始内容:Another way to govern a modular monolith architecture is to control the amount of communication between modules.