知识卡片

普通读书笔记卡 · 3327.a

单体以少量单元部署

理解等级:初级

单体应用通常把较多功能打包进一个或少数几个部署单元,因此改动容易共享发布节奏。代码量大是常见信号,却不能单凭规模判定架构失效;早期产品把代码放在一起,还可能减少部署与协作开销。评估时应追问模块能否独立修改、测试和发布。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第1章《What’s Wrong with Monoliths?》(源文件:`_epub-src/OPS/ch01.xhtml`,归一化正文 [0:4160)) - 结论依据:原文以大量代码和少量部署工件描述单体,同时承认大代码库本身只是异味、并非问题定论,也指出产品早期集中代码和部署可以简化工作。 - 原始内容:Monoliths are a style of software architecture where a large amount of code is deployed using a small number of deployment units like exes, JARs, WARs, etc. In short, a big codebase with a few deployed artifacts. It is the natural state of most application development when it just gets started, having all the code in the same code repository and deployment unit simplifies your life in the early days where finding product-market fit trumps premature optimization.