The Flat Age Alarm
A standard SQS queue has a redrive policy with maxReceiveCount set to 10 and a dead-letter queue attached. A batch of malformed jobs is failing on every attempt. An operator is paging on ApproximateAgeOfOldestMessage and the metric stays under two minutes all afternoon, so nobody notices for six hours.
| receive # of the poison message | what the consumer does | what the queue does next |
|---|---|---|
| 1 | throws, does not delete | message returns after the visibility timeout |
| 2 | throws, does not delete | message returns after the visibility timeout |
| 3 | throws, does not delete | ? |
| 10 | throws, does not delete | moved to the dead-letter queue |
Why did the age alarm stay quiet while these messages were stuck?
Sign in to answer questions and track your progress
Sign In