知识卡片
购买失败需要业务补偿
针对[[扣款发货故障可留下未知结果]],发货失败可先重试,仍失败则退钱或撤销卡交易并通知客户;这些反向动作失败也必须被处理。恢复流程应记录已完成步骤,再继续或补偿,不能把发起退款等同最终一致。补偿有业务含义,不会把现实世界退回从未发生,也不提供数据库隔离。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 保持状态一致 · 查看原书依据
If shipping fails, we retry the transaction, and if it fails too, we return the money (void the transaction if by bank card) and notify the customer. If any of the responses to failure fail, we need to handle that issue too.
参考来源
- 位置:《Software Architecture and Decision-Making》第07章《保持状态一致》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch07.xhtml)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:If shipping fails, we retry the transaction, and if it fails too, we return the money (void the transaction if by bank card) and notify the customer. If any of the responses to failure fail, we need to handle that issue too.