知识卡片
单体分为三种形态
经典单体通常是集中代码和少量部署单元;分布式单体虽分成多个服务,却因高耦合和缺少隔离仍要整体部署与运维;模块化单体保留集中部署,同时用明确边界隔离功能。判断形态应看依赖与独立变化能力,而非服务数量。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第1章《What’s Wrong with Monoliths?》(源文件:`_epub-src/OPS/ch01.xhtml`,归一化正文 [58432:62693))
- 结论依据:原文逐一定义经典、分布式和模块化单体,区别在隔离、耦合和部署约束。
- 原始内容:We will classify monoliths in three types: classical monoliths, distributed monoliths and modular monoliths. Classical, distributed, and modular monoliths Figure 1.16: Types of monolith architecture, Now that we understand the traits of monoliths, their drawbacks and even potential benefits, let’s talk about the 3 kinds of monoliths we have seen in the wild, two negative, and one positive. ( Figure 1.16 ) Classical/Legacy monolith : Big codebase, few deployment units, fully centralized and usually quite old.