知识卡片

支付系统案例卡 · 2313.e.5.f.10.a.3.a.1.a.2.b.1

幂等支付复用原结果

理解等级:高级

同一业务支付的重试沿用稳定幂等标识,服务端记录并复用原结果;结果未知时先按原身份查询或恢复,避免以新身份再次执行。原书令牌只是机制起点,还需协调令牌记录、并发和外部扣款。对应[[支付确认超时结果未知]]。

这张卡片看不懂?

已有反馈 · 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.