知识卡片

普通读书笔记卡 · 3327.b

部署分散不等于架构分散

理解等级:高级

微服务的部署工件可以独立,却仍通过内部共享库、隐含契约或共享数据库保持集中耦合。判断架构是否真正分散,要检查组件能否独立修改、测试和部署,而不能只数服务数量。反过来,单体也可能包含分布式元素;集中与分散是一条连续谱,而非两种互斥标签。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第1章《What’s Wrong with Monoliths?》(源文件:`_epub-src/OPS/ch01.xhtml`,归一化正文 [8358:12444)) - 结论依据:原文先指出微服务可能共享库、契约与数据库,再要求越过部署工件检查全部组件,并说明单体也可含分布式元素,因此部署形式不足以判定隔离程度。 - 原始内容:Microservices are distributed but may share elements that, under the hood, can make them still centralized. Internal shared libraries, hidden contracts, shared databases. If you look beyond the surface, that is, beyond the deployed artifacts, but instead look at all of the components of your system; will you find that they are all properly isolated and truly distributed?