知识卡片

普通读书笔记卡 · 1903.c.1.b.3.a.1

内聚看共同变化

理解等级:中级

内聚描述组件内部元素是否围绕同一目的。一个大组件装入多个不相关服务时,只改其中一个服务也要部署全体,内聚较低。可通过历史上经常一起修改的元素识别自然边界;很少一起变化的资源可能应拆开。但拆分可能增加跨组件耦合,必须连同依赖评估。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 基础设施代码设计原则 · 查看原书依据

      Cohesion describes the relationships among the elements within a component. A component has high cohesion when all its elements are related to a single purpose. It has low cohesion if its elements aren’t closely related. The concept of cohesion aligns with the Unix philosophy mentioned in CUPID. Figure 5-1 shows the infrastructure resources for several

    参考来源

    - 位置:《Infrastructure As Code》第5章《基础设施代码设计原则》(来源项目 book-sources,源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch05.html) - 结论依据:原文对该概念的定义、应用条件与作用机制直接支持上述解释。 - 原始内容:Cohesion describes the relationships among the elements within a component. A component has high cohesion when all its elements are related to a single purpose. It has low cohesion if its elements aren’t closely related. The concept of cohesion aligns with the Unix philosophy mentioned in CUPID. Figure 5-1 shows the infrastructure resources for several