知识卡片
功能内聚限制量子范围
功能内聚指实现同一业务领域或工作流的行为与数据聚在一起。一个大单体虽然整体可部署,却往往包含多个领域,不能仅靠部署条件证明它拥有好的内聚。理想微服务应对齐单一领域或工作流;服务彼此隔离程度和内部业务集中度都要看。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 辨别架构中的耦合 · 查看原书依据
High functional cohesion refers structurally to the proximity of related elements: classes, components, services, and so on. Throughout history, computer scientists defined a variety of cohesion types, scoped in this case to the generic module, which may be represented as classes or components, depending on platform. From a domain standpoint, the technical definition of high functional cohesion overlaps with the goals of the bounded context in domain-driven design: behavior and data that implements a particular domain workflow.
参考来源
- 位置:《Software Architecture: The Hard Parts》第2章《辨别架构中的耦合》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch02.xhtml)
- 结论依据:原文的定义、比较或案例支持“功能内聚指实现同一业务领域或工作流的行为与数据聚在一起”;正文据此解释其用途与适用边界。
- 原始内容:High functional cohesion refers structurally to the proximity of related elements: classes, components, services, and so on. Throughout history, computer scientists defined a variety of cohesion types, scoped in this case to the generic module, which may be represented as classes or components, depending on platform. From a domain standpoint, the technical definition of high functional cohesion overlaps with the goals of the bounded context in domain-driven design: behavior and data that implements a particular domain workflow.