知识卡片
订阅双授权导致重扣
更换订阅扣款授权时,若先创建并激活新授权,之后取消旧授权的独立API调用失败,就可能同时留下两个有效授权。业务期望“客户不能重复扣款”,却跨越了多次远程操作;调用链中某一步失败不会自动撤销先前成功。此卡只解释问题,方案见[[订阅授权的分步切换]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Architectural Decision Records · 查看原书依据
Risks having two active mandates (old and new) if the cancellation fails. This is “fail in favor of the company.” How frequently do we think this will happen? Cancel the existing mandate, then create and activate the new one, async retries if “activate” fails. Same as Option 1, but with async retries to “activate.” Blocks
参考来源
- 位置:《Facilitating Software Architecture》第06章《Architectural Decision Records》(来源项目 /Users/wangyi/claudecodeProject/bookBase/book-sources;源文件:extracted/Facilitating Software Architecture/_epub-src/OEBPS/ch06.html)
- 结论依据:原文明确create/activate再cancel在取消失败时留下old和new两个active mandates。
- 原始内容:Risks having two active mandates (old and new) if the cancellation fails. This is “fail in favor of the company.” How frequently do we think this will happen? Cancel the existing mandate, then create and activate the new one, async retries if “activate” fails. Same as Option 1, but with async retries to “activate.” Blocks