知识卡片
幂等支付复用原结果
同一业务支付的重试沿用稳定幂等标识,服务端记录并复用原结果;结果未知时先按原身份查询或恢复,避免以新身份再次执行。原书令牌只是机制起点,还需协调令牌记录、并发和外部扣款。对应[[支付确认超时结果未知]]。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Building Resilient Systems · 查看原书依据
Idempotency tokens to prevent duplicate processing: Idempotency tokens are unique identifiers assigned to operations to ensure they are processed exactly once, even if the same request is sent multiple times.
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第08章《Building Resilient Systems》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch08.xhtml)
- 结论依据:原文给出本卡对应定义或示例;同一业务支付的重试沿用稳定幂等标识,服务端记录并复用原结果;结果未知时先按原身份查询或恢复,避免以新身份再次执行。 对原文省略和过度承诺的限定是本卡显式纠正,不能反过来当作原书已证明。
- 原始内容:Idempotency tokens to prevent duplicate processing: Idempotency tokens are unique identifiers assigned to operations to ensure they are processed exactly once, even if the same request is sent multiple times.