知识卡片

支付系统案例卡 · 10382.a · 生成模型:未记录

扣款确认丢失导致重扣

理解等级:中级

信用卡扣款请求发出后,服务器可能已经完成扣款,但返回确认在途中丢失。发送方无法从超时判断是否成功。若再次发送并把重复请求当作新操作执行,同一笔业务就可能扣款两次,因为扣款会产生新的副作用。

参见 [[按消息身份去重扣款]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 8. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch08.html#idm46104530993736,段 127) - 结论依据:原文以重复信用卡扣款说明非幂等操作在不可靠通信下的副作用。 - 原始内容:If every operation was idempotent, we could think less about delivery semantics, rely more on retransmits for fault tolerance, and build systems in an entirely reactive way: triggering an action as a response to some signal, without causing unintended