Idempotency Keys
When a client doesn't get a clear response — a timeout, a dropped connection — it often retries the same request. For anything that changes state (charging a card, sending an email), an idempotency key lets the server recognize 'I've already done this exact operation' and return the original result instead of doing it again.
Hands-on demo
Simulate a network timeout mid-payment
The client never gets a response, so it automatically retries the exact same $60 charge. Does the customer get billed once or twice?
Try it yourself
Try it yourself — run a scenario below, then flip this and replay it to see what changes.
Network Timeout, Safe Retry
A dropped connection triggers a retry that doesn't double-charge the customer.
Want this flow explained in detail as it plays?
Checkout
The request is sent with a client-generated unique key attached.
Selected hop
Client submits a $60 charge with idempotency key abc-123
Whatever is sending the request — a browser, script, or API caller.
The application's backend — enforces business rules and decides what every request is allowed to do.
What happens here
The request is sent with a client-generated unique key attached.