SNS 的自限流消息长时间未送达会怎样? [英] What happens to SNS' self throttled messages which are not delivered for a long time?
问题描述
假设我有一个 SNS,我使用 maxReceivesPerSecond
属性对其进行自我限制.假设我们的生产率非常高,但是由于节流,消耗非常缓慢.这会导致一些消息在 SNS 中长时间存在.
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.
我看到了这个SO answer,其中提到此类消息将在 1 小时后被删除.但该引用不再存在于文档中.
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.
那么现在删除 SNS 中未发送消息的政策是什么?
So what is the current policy of deletion of un-delivered messages in a SNS now?
推荐答案
Amazon SNS 现在允许您为每条消息设置最多两周的 TTL(生存时间)值.在给定的时间段内(以消息发布后的秒数表示)仍未送达的消息将过期且不会送达.
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/
这篇关于SNS 的自限流消息长时间未送达会怎样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!