← 返回刚才阅读的位置

知识卡片

结构图卡 · 2313.e.3.g.1.e

动态耦合三维取舍

理解等级:高级

运行时耦合由通信是否等待、一致性要求和协调责任分配共同决定。同步等待会让调用者被被调者速度拖住;异步队列可缓冲不同处理速率,让两者继续独立运行,但工作流结果仍需后续回传。一致性与协调不是通信方式的同义词:原子事务较容易与同步编排组合,高扩展常倾向最终一致的异步协同。

结构图:

flowchart TD
 A[运行时工作流] --> B[通信:同步或异步]
 A --> C[一致性:原子或最终一致]
 A --> D[协调:编排或协同]
 B --> E[共同决定耦合与质量属性]
 C --> E
 D --> E
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 辨别架构中的耦合 · 查看原书依据

      These three factors—communication, consistency, and coordination—all inform the important decision an architect must make. Critically, however, architects cannot make these choices in isolation; each option has a gravitation effect on the others. For example, transactionality is easier in synchronous architectures with mediation, whereas higher levels of scale are possible with eventually consistent asynchronous choreographed systems.

    参考来源

    - 位置:《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) - 结论依据:原文的定义、比较或案例支持“运行时耦合由通信是否等待、一致性要求和协调责任分配共同决定”;正文据此解释其用途与适用边界。 - 原始内容:These three factors—communication, consistency, and coordination—all inform the important decision an architect must make. Critically, however, architects cannot make these choices in isolation; each option has a gravitation effect on the others. For example, transactionality is easier in synchronous architectures with mediation, whereas higher levels of scale are possible with eventually consistent asynchronous choreographed systems.