What does idempotent actually mean?
medium~20 min#api-design#reliability#rest
A client calls POST /payments, the connection times out, and it does not know whether the payment happened. It retries.
Define idempotency precisely, explain why POST is not idempotent, and design the endpoint so this retry is safe.
Solution — locked
Sign in to unlock this one
The solution opens once you explain the idea in your own words and it passes the grader — which needs an account to record. Signing in is free.
Log in