如果超过 SQS 的限制,我们会丢失消息吗?
Do we lose messages, if limit in SQS is exceeded?
在 AWS SQS 控制台中,
我已经创建了标准SQS队列并配置如下:
Message retention period: 4 hours
Default visibility timeout: 1 hour
Receive message wait time: 0 seconds
Delivery Delay: 0 seconds
投票设置如下:
Polling Duration: 60 seconds
Maximum message count: 500
但是,如果发送到队列的消息数是 1500 条怎么办?
有一个 lambda 每半小时处理一次消息并删除(读取的)SQS 消息。
每当 SQS 中的其他消息被删除时,其他 1000 条消息是否会丢失或进入 SQS?
来自docs:
A single Amazon SQS message queue can contain an unlimited number of messages.
因此它们不会从您的 SQS 中删除。相反,它们将作为第二批发送到您的 lambda。
在 AWS SQS 控制台中,
我已经创建了标准SQS队列并配置如下:
Message retention period: 4 hours
Default visibility timeout: 1 hour
Receive message wait time: 0 seconds
Delivery Delay: 0 seconds
投票设置如下:
Polling Duration: 60 seconds
Maximum message count: 500
但是,如果发送到队列的消息数是 1500 条怎么办?
有一个 lambda 每半小时处理一次消息并删除(读取的)SQS 消息。
每当 SQS 中的其他消息被删除时,其他 1000 条消息是否会丢失或进入 SQS?
来自docs:
A single Amazon SQS message queue can contain an unlimited number of messages.
因此它们不会从您的 SQS 中删除。相反,它们将作为第二批发送到您的 lambda。