Interview practice question
Customers receive duplicate confirmation emails
Backend Engineering · Microservices · Beginner
Customers sometimes receive two order confirmation emails. The email service consumes OrderPlaced events from a queue. Why, and how do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- At-least-once delivery → duplicates.
- Consumer crashed/timed out before ack.
- Store processed event IDs.
- Idempotent send keyed by order ID.
- Check visibility timeout vs processing time.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.