Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens to SNS' self throttled messages which are not delivered for a long time?

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?

like image 487
Mooncrater Avatar asked Oct 29 '25 01:10

Mooncrater


1 Answers

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/

like image 178
Muzaffar Shaikh Avatar answered Oct 30 '25 16:10

Muzaffar Shaikh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!