Make Requests Idempotent
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
A customer's phone loses signal just after tapping pay, the app retries the request, and the customer is charged twice. Explain what idempotency means and how you'd design the payment API so retries are safe.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.