知识卡片

普通读书笔记卡 · 1980.z.6.h

舞蹈把流程分散到服务

理解等级:高级

舞蹈没有中央协调器,服务按事先设计的事件或消息接续工作。订单完成本地写入后通知支付,支付再通知履约,履约通知邮件;它提供更多并行和独立扩容机会。错误不会因移除协调器而消失:缺货发生在付款后,履约必须发出领域事件,让支付、订单和邮件共同修正结果,通信路径和服务内流程知识随之增加。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 管理分布式工作流 · 查看原书依据

      In this workflow, the initiating request goes to the first service in the chain of responsibility—in this case, the Order Placement Service. Once it has updated internal records about the order, it sends an asynchronous request that the Payment Service receives. Once payment has been applied, the Payment Service generates a message received by the Fulfillment Service, which plans for delivery and sends a message to the Email Service.

    参考来源

    - 位置:《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) - 结论依据:原文的定义、示例或失败路径支持以下归纳:舞蹈没有中央协调器,服务按事先设计的事件或消息接续工作。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。 - 原始内容:In this workflow, the initiating request goes to the first service in the chain of responsibility—in this case, the Order Placement Service. Once it has updated internal records about the order, it sends an asynchronous request that the Payment Service receives. Once payment has been applied, the Payment Service generates a message received by the Fulfillment Service, which plans for delivery and sends a message to the Email Service.