知识卡片

普通读书笔记卡 · 3327.c

服务大小要结合交付成本判断

理解等级:高级

服务代码量大只能提示风险,不能独立证明设计失败。业务价值需要抽象承载,某些职责无法压缩为少量代码。评估大小是否有害,应结合修改出错率、测试与发布自动化、理解和调试难度,以及跨团队协调成本。若只追求“小”,复杂度可能转移到服务之间。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第1章《What’s Wrong with Monoliths?》(源文件:`_epub-src/OPS/ch01.xhtml`,归一化正文 [8358:12444)) - 结论依据:原文明确说大量代码不必然糟糕,随后列出维护、测试、隔离、发布与团队协调等评估问题;据此将规模视为需结合交付成本解释的线索。 - 原始内容:In the real world, complexity always needs to live somewhere. In order to have value, a service needs to provide functionality accessible through abstractions; and depending on the nature of those abstractions, it is not always possible to keep things small, and add the necessary value with a few lines of code. In short, having an extensive code base inside a single service does not necessarily mean it is awful.