← 返回刚才阅读的位置

知识卡片

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

异步仍有三种耦合

理解等级:高级

异步通信不会自动解耦。消费者都订阅生产者完整领域事件并重建同一状态,既重复投影逻辑形成功能耦合,也依赖内部事件全集形成实现耦合。若报表靠延迟五分钟等待另一服务计算,则存在时间耦合;网络、过载或故障都可能让等待失效。延迟只是猜测,不能表达前置工作已完成。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 事件驱动架构 · 查看原书依据

      The AdsOptimization and Reporting bounded contexts are temporally coupled: they depend on a strict order of execution. The AdsOptimization component has to finish its processing before the Reporting module is triggered. If the order is reversed, inconsistent data will be produced in the Reporting system. To enforce the required execution order, the engineers introduced the

    参考来源

    - 位置:《Learning Domain-Driven Design》第15章《事件驱动架构》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch15.html) - 结论依据:原文真实案例依次分析固定延迟、重复投影和订阅全部内部事件的三种耦合。 - 原始内容:The AdsOptimization and Reporting bounded contexts are temporally coupled: they depend on a strict order of execution. The AdsOptimization component has to finish its processing before the Reporting module is triggered. If the order is reversed, inconsistent data will be produced in the Reporting system. To enforce the required execution order, the engineers introduced the