How to keep messages in an SQS queue for longer than 14 days?

893 views Asked by At

I have a queue that is going to have a massive number of messages on it, which will be processed over many days. It is likely that some of the first messages onto the queue could still be there waiting for a chance to be processed for longer than 14 days, the maximum message retention time.

My original thought was to set up a dead letter queue to take these messages in as they expire, then just put a fresh copy of them back onto the main queue, but after some reading it seems that messages that outlive the retention time are deleted, not send to a DLQ.

Is there a strategy I can use to detect messages before they hit the 14 day mark and put a fresh copy of them on the queue so they aren't simply lost without being processed?

Thank you

0

There are 0 answers