知识卡片

普通读书笔记卡 · 2955.h.1

流程管理器保存业务决策

理解等级:中级

流程管理器具有明确身份和持久状态,根据当前流程状态与业务条件选择后续步骤,适合多分支复杂流程。它要显式创建,例如差旅预订先选航线、求批准,再订机票和酒店,酒店失败则取消机票。本书以Saga表示较简单的事件到命令映射;出现业务分支选择时通常已是流程管理器。

相关:[[Saga编排跨事务流程]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 通信模式 · 查看原书依据

      The process manager pattern, shown in Figure 9-14, is intended to implement a business-logic-based process. It is defined as a central processing unit that maintains the state of the sequence and determines the next processing steps.2 Figure 9-14. Process manager As a simple rule of thumb, if a saga contains if-else statements to choose the

    参考来源

    - 位置:《Learning Domain-Driven Design》第9章《通信模式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch09.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:The process manager pattern, shown in Figure 9-14, is intended to implement a business-logic-based process. It is defined as a central processing unit that maintains the state of the sequence and determines the next processing steps.2 Figure 9-14. Process manager As a simple rule of thumb, if a saga contains if-else statements to choose the