Re:Idempotency Is Easy Until the Second Request Is Different
by jmalicki on Tuesday May 12, 2026 @07:40AM
(#48106847)
If the idempotency key must be persisted, that is the bookkeeping that has to occur to consider the request a success.
Re:Idempotency Is Easy Until the Second Request Is Different
by scott_w on Tuesday May 12, 2026 @10:10AM
(#48108574)
Ok, so I’m stating that the persisting of that key must happen before the call to the payment gateway happens and regardless of whether that call succeeds or even completes. Is this something we agree on?
My point is that you can’t rely on this specific mechanism because request failure does not mean the payment is not going through!
I’m not sure where we disagree so I must ask: do you disagree with what I’ve written and, if so, what and why?