Mediumhigh level designdistributed systemsreliabilityIdempotency: How to Retry a Payment Without Charging TwiceThe network fails after your server does the work but before the answer gets home, so the client retries — and a naive charge endpoint bills the card twice. Idempotency is the discipline that makes every retry safe.Asked at Stripe, Amazon, PayPal +3Aug 8, 2026·15 min read