知识卡片
模块可同库组织也可独立打包
模块化单体有两种代码组织:同一代码库用顶层目录或命名空间隔开模块;或把各模块做成独立 JAR/DLL,再合成一个部署单元。前者便于统一维护和测试,却更易跨模块直接复用;后者边界更清楚,适合相对独立且需不同专业知识的模块,但模块间依赖多时会增加构建与依赖管理负担。两者都仍是单体部署。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- The Modular Monolith Architecture Style · 查看原书依据
With the modular structure, modules are represented as self-contained artifacts (such as JAR and DLL files), then put together into a single deployment unit during deployment.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第11章《The Modular Monolith Architecture Style》(阅读计划第14项;源文件:`OEBPS/ch11.html`)
- 结论依据:原文分别描述 monolithic structure 与 modular structure 的代码组织、优势和依赖边界。
- 原始内容:With the modular structure, modules are represented as self-contained artifacts (such as JAR and DLL files), then put together into a single deployment unit during deployment.