4

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?

Mooncrater
  • 4,146
  • 4
  • 33
  • 62

1 Answers1

3

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/

Muzaffar Shaikh
  • 630
  • 4
  • 14