← 返回刚才阅读的位置

知识卡片

支付系统案例卡 · 2313.e.5.m.8.b.1.a

付款成功后从履约阶段恢复

理解等级:中级

针对[[付款失败不得推进订单履约]],代理收到付款失败结果后停止流程,把请求进度持久化;待付款实际完成,再从履约阶段起点恢复,而非把此前已完成的邮件、库存调整一概重做。原书给出阶段恢复轮廓,没有说明回执重复、状态写入失败或并发重试如何处理,因此这些条件仍须在具体系统设计中核验。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Event-Driven Architecture Style · 查看原书依据

      it stops the workflow and records the state of the request in its own persistent datastore. Once payment is eventually applied, the workflow can be restarted from where it left off (in this case, the beginning of step 3).

    参考来源

    - 位置:《Fundamentals of Software Architecture》原书第15章《Event-Driven Architecture Style》(阅读计划第18项,单元14;源文件:`OEBPS/ch15.html`) - 结论依据:原书写明代理停止流程、持久化请求状态,付款应用后从第三阶段开头恢复。 - 原始内容:it stops the workflow and records the state of the request in its own persistent datastore. Once payment is eventually applied, the workflow can be restarted from where it left off (in this case, the beginning of step 3).