Say that I have a SNS which I am self throttling using the attribute maxReceivesPerSecond. Let's say we have a very high production rate, but due to the throttling, the consumption is very slow. This can lead to some messages being in the SNS for a long time.
I saw this SO answer, where it's mentioned that such messages will be deleted after 1 hour. But the quote doesn't exist in the documentation anymore.
So what is the current policy of deletion of un-delivered messages in a SNS now?
Amazon SNS now allows you to set a TTL (Time to Live) value of up to two weeks for each message. Messages that remain undelivered for the given period of time (expressed as a number of seconds since the message was published) will expire and will not be delivered.
You should refer to this link for more details:
https://aws.amazon.com/blogs/aws/sns-ttl-control/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With