SQS Message retrival after message is deleted

0

Hi Team, we have these aws sqs queues whose retention period is of 4 days. The messages were not retrieved between these 4 days and now those messages are not available. is there any way to retrieve those messages from that queue?

1 Answer
1

SQS deltes the message after reaching the retention period. There is no way to retrieve those messages any more.

You might want to monitor the ApproximateAgeOfOldestMessage metric to avoid something like this happening in the future as described at Monitor SQS queues with CloudWatch metrics and alarms.

answered 3 years ago
  • We thought that Message retention period is supposed to impact sending this message to Dead Letter Queue.. We were surprised to find out that only way to get into dead letter queue is by Maximum receives when we have "traffic jam" in the queue our messages don't necessarily reach the Maximum receives couldn't it be similar to car's insurance rules? - either 3 years (Message retention period) or 80K Kilometers (Maximum receives)

    How do u suggest to handle those old messages when we get a "traffic jam"? just extending the Message retention period..? Do you plan to provide a way to mark that we do want old messages to be moved to the dead letter queue instead of them being deleted?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions