← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.3.g.1.e.1

同步等待传导扩展约束

理解等级:高级

即便两个服务在静态上独立,若Ticketing以Assignment十倍的弹性规模运行,却同步等待Assignment响应,整个工作流仍被较慢一方限制。异步队列提供缓冲,使发送者放入消息后继续工作,之后再接收完成通知。它缓解运行速度耦合,不能因此声称业务处理立即完成。

相关:[[动态耦合三维取舍]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      If we make a synchronous call, the whole workflow will bog down, as the caller waits for the slower service to process and return. If on the other hand we make an asynchronous call, using the message queue as a buffer, we can allow the two services to execute operationally independently, allowing the caller to add messages to the queue and continue working, receiving notification when the workflow is complete.

    参考来源

    - 位置:《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) - 结论依据:原文的定义、比较或案例支持“即便两个服务在静态上独立,若Ticketing以Assignment十倍的弹性规模运行,却同步等待Assignment响应,整个工作流仍被较慢一方限制”;正文据此解释其用途与适用边界。 - 原始内容:If we make a synchronous call, the whole workflow will bog down, as the caller waits for the slower service to process and return. If on the other hand we make an asynchronous call, using the message queue as a buffer, we can allow the two services to execute operationally independently, allowing the caller to add messages to the queue and continue working, receiving notification when the workflow is complete.