Messages Processed Twice
Workers read from an SQS standard queue. A job takes about 90 seconds, and the queue's visibility timeout is 30 seconds. The same job often runs twice. What's the main fix?
Choose one answer
Lower the message retention period so finished messages expire sooner.
Raise the visibility timeout above the job time, or extend it while working.
Add a dead-letter queue so duplicate messages are moved out of the way.
Switch to long polling so each message is delivered only once.