知识卡片
付款失败后补偿订单写入
针对[[跨服务付款失败留下未批准订单]],原书要求另向订单服务施加补偿更新,使已写入的订单回到一致状态。补偿是付款失败后的额外动作,不是跨服务自动回滚;它的具体字段和重试机制原书未给出,不能据此推断已实现幂等或保证最终成功。设计时仍需明确补偿目标状态与失败后处理。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Service-Based Architecture Style · 查看原书依据
A separate action known as a compensating update (discussed in Chapter 9) would need to be applied to the OrderPlacement service to bring the data to a consistent state.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第14章《Service-Based Architecture Style》(阅读计划第17项;源文件:`OEBPS/ch14.html`)
- 结论依据:原文提出对 OrderPlacement 执行单独的 compensating update 来恢复一致;重试细节未展开。
- 原始内容:A separate action known as a compensating update (discussed in Chapter 9 ) would need to be applied to the OrderPlacement service to bring the data to a consistent state.