知识卡片

普通读书笔记卡 · 3442.a

单体增长放大发布范围

理解等级:中级

单体增大后,测试集与部署往往随整套应用一起扩大,发布可能积累更多变更;出错时定位和回退也更难。对某个模块增加资源时,整个应用实例随之扩容。这里的问题与规模和模块耦合有关,不能据此断定小型单体也必须拆分。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Microservice APIs》第 1 章《What are microservice APIs?》(源文件:_epub-src/OEBPS/Text/01.htm) - 结论依据:1.1.2 节连续说明代码库增长使测试、部署和故障定位更难,并指出单进程结构令局部资源扩容变成整套应用扩容;此前也明确小型代码库可适合单体。 - 原始内容:The bigger the monolith, the longer it takes to test it. Every part of the monolith must be tested, and as we add new features to it, the test suite grows larger. ... And because the whole application runs within the same process, when you scale the resources for one component, you are scaling for the whole application.