知识卡片
语义耦合不可消除
语义耦合是业务本身要求的协作,例如先提工单、再匹配技能、核对排班地点;实现耦合是代码、服务与技术分层额外加入的协作。改用舞蹈无法删掉业务必须经历的步骤。按技术层划分会让一个领域流程跨多层展开,通常比按领域划分多一层协调;集中连接池等收益可能仍值得付出这一代价。架构应先识别不可省的业务协作,再判断额外技术耦合是否有回报。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 管理分布式工作流 · 查看原书依据
The semantic coupling of a workflow is mandated by the domain requirements of the solution and must be modeled somehow. However clever an architect is, they cannot reduce the amount of semantic coupling, but their implementation choices may increase it.
参考来源
- 位置:《Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)》第11章《Chapter 11. Managing Distributed Workflows》(来源项目: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/ch11.xhtml)
- 结论依据:原文的定义、示例或失败路径支持以下归纳:语义耦合是业务本身要求的协作,例如先提工单、再匹配技能、核对排班地点;实现耦合是代码、服务与技术分层额外加入的协作。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。
- 原始内容:The semantic coupling of a workflow is mandated by the domain requirements of the solution and must be modeled somehow. However clever an architect is, they cannot reduce the amount of semantic coupling, but their implementation choices may increase it.