Interview practice question
A retry charged the customer twice
System Design · Distributed Systems · Beginner
A payment service timed out, the caller retried, and the customer was charged twice. How do you prevent this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Timeout doesn't mean failure.
- Idempotency key per payment.
- Server stores key and result.
- Retry returns stored result.
- Same key reused across retries.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.