知识卡片
流程责任需要显式协调
履约服务若对订单交付负责,就需要显式要求收款、取货、发货并等待结果。支付仅负责可靠收款,不应理解订单创建或数字商品等各种上游事件。独立的履约协调让步骤顺序有明确归属,通用服务可以在新增业务调用者时保持稳定。
结构图:
sequenceDiagram
participant F as 履约
participant P as 支付
participant I as 库存
F->>P: 收款命令
P-->>F: 已收款
F->>I: 取货命令
I-->>F: 已取货
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 平衡编排与协同 · 查看原书依据
The order fulfillment microservice first has to make sure that the payment will be retrieved for this order. Having an intent translates to a command. So the order fulfillment service sends that command and waits for payment to be received, probably indicated by the payment received event mentioned earlier. Then the order fulfillment microservice can
参考来源
- 位置:《Practical Process Automation》第8章《平衡编排与协同》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch08.xhtml)
- 结论依据:原文给出的机制、实例与边界支持本卡的解释。
- 原始内容:The order fulfillment microservice first has to make sure that the payment will be retrieved for this order. Having an intent translates to a command. So the order fulfillment service sends that command and waits for payment to be received, probably indicated by the payment received event mentioned earlier. Then the order fulfillment microservice can