News for hackers. Stuff that matters.
Re:Idempotency bug leads to free Uber Eats food by thundergolfer on Tuesday March 15, 2022 @08:54PM (#30693968)
The ex-Uber author is using a loose or colloquial definition of idempotency, which is concerned with getting an identical response across calls (implying something about system state changes that produce the responses). But the API providers may consider their system still idempotent because the HTTP response is not considered part of their ‘system state’ and so the response changing across calls is not relevant. What’s relevant is the payment provider’s internal system state being invariant across 1-N calls. They may claim “this is idempotent because it’s safe to retry repeatedly” without making the claim that the error code is identical each call.
Re:Idempotency bug leads to free Uber Eats food by mytailorisrich on Wednesday March 16, 2022 @07:57AM (#30697679)
Repeated failures with the same error code is not idempotency even using a loose or colloquial definition, which at some point means nothing at all beyond getting the same result when trying the same thing multiple times (of course you do, it fails!)