知识卡片
补偿更新自身也可能失败
跨服务更新有时用协调者在部分步骤失败后发起反向操作,尝试恢复原状态;但反向操作也可能失败。设计事务工作流时,除正常补偿路径,还需定义“原更新部分完成且补偿也部分失败”时如何发现、记录与恢复。原书未给具体支付交易或恢复算法,不能把补偿说成保证原子性。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Foundations · 查看原书依据
must also consider how to recover if the update and the compensating update (or a portion of it) both fail.
参考来源
- 位置:《Fundamentals of Software Architecture》第12章《Foundations》(源文件:`OEBPS/ch09.html`)
- 结论依据:原文第十个补充谬误明确指出补偿失败的二次故障边界。
- 原始内容:must also consider how to recover if the update and the compensating update (or a portion of it) both fail.