知识卡片

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

消息携带流程状态

理解等级:中级

印记耦合可把已执行步骤、状态等额外信息放进服务间消息,每个服务更新自己负责的部分,再转交下一个服务。后续参与者可以读取上下文,无需逐个询问前面的服务,也无需前端控制器。但消息更大,且在途消息不是用户随时可查的集中进度库;若有实时状态查询要求,还需单独设计。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      A third solution utilizes stamp coupling (described in more detail in “Stamp Coupling for Workflow Management”), storing extra workflow state in the message contract sent between services. Each domain service updates its part of the overall state and passes that to the next in the chain of responsibility. Thus, any consumer of that contract can check on the status of the workflow without querying each 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) - 结论依据:原文的定义、示例或失败路径支持以下归纳:印记耦合可把已执行步骤、状态等额外信息放进服务间消息,每个服务更新自己负责的部分,再转交下一个服务。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。 - 原始内容:A third solution utilizes stamp coupling (described in more detail in “Stamp Coupling for Workflow Management”), storing extra workflow state in the message contract sent between services. Each domain service updates its part of the overall state and passes that to the next in the chain of responsibility. Thus, any consumer of that contract can check on the status of the workflow without querying each service.