Interview practice question
SQS messages processed twice
System Design · Messaging and Queues · Intermediate
Your SQS consumers sometimes process the same message twice, and jobs take about 2 minutes. The visibility timeout is 30 seconds. What is wrong?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Visibility timeout shorter than processing.
- Message reappears and is picked up again.
- Set timeout above max processing time.
- Extend visibility during long jobs.
- Idempotent processing anyway.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.