← 返回刚才阅读的位置

知识卡片

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

付款失败不得推进订单履约

理解等级:中级

原书零售订单教学例中,付款与邮件、库存调整并行。信用卡过期使付款未应用,或付款处理器崩溃时库存仍被调整,都会让各分支状态不一致;若流程继续履约,还会在未收款时处理订单。技术根因是把分支隔离误当作业务完成:付款成功回执是履约前置条件,不能把已发付款命令或其他任务完成当作付款成功。对应的中介代理恢复轮廓见[[付款成功后从履约阶段恢复]];这不是现实事故或实测结果。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 2 处

    参考来源

    - 位置:《Fundamentals of Software Architecture》原书第15章《Event-Driven Architecture Style》(阅读计划第18项,单元14、23;源文件:`OEBPS/ch15.html`) - 结论依据:原书明确信用卡过期导致付款未应用时,履约阶段不能开始;并在架构特征段写明付款处理器崩溃后库存处理器仍继续。 - 原始内容:the payment was not applied because the credit card has expired. When the mediator receives this error condition, it knows that the order cannot be fulfilled (step 3) until payment is applied - 原始内容(单元23):if the Payment event processor in our ordering system crashes and does not complete its assigned task, the Inventory event processor still adjusts the inventory