知识卡片
单体模块也可拥有各自数据库
单部署单元通常配一个共享数据库,便于模块访问数据,也可让相对独立的模块各自持有特定上下文的数据。数据库是否共享与应用是否单体是两个不同决策:前者决定数据边界与跨模块协作方式,后者决定部署和故障单元。独立数据库并不会自动把模块变成微服务。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- The Modular Monolith Architecture Style · 查看原书依据
However, if the modules are independent from each other and perform specific functions, they can also have their own databases containing specific contextual data, even though the architecture itself is monolithic.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第11章《The Modular Monolith Architecture Style》(阅读计划第14项;源文件:`OEBPS/ch11.html`)
- 结论依据:原文明确给出单数据库与模块独立数据库两种拓扑。
- 原始内容:However, if the modules are independent from each other and perform specific functions, they can also have their own databases containing specific contextual data, even though the architecture itself is monolithic.