Jack
Jack

Reputation: 37

Do we lose messages, if limit in SQS is exceeded?

In AWS SQS console,

I have created Standard SQS Queue and configured as following:

Message retention period: 4 hours
Default visibility timeout: 1 hour
Receive message wait time: 0 seconds
Delivery Delay: 0 seconds

Poll settings as following:

Polling Duration: 60 seconds
Maximum message count: 500

But, What if the count of messages sent to the queue is 1500?

There's a lambda that's processing the messages every half an hour and deleting the (read) SQS messages.

Will other 1000 messages get lost or will they get into SQS whenever another messages in SQS are getting deleted?

Upvotes: 1

Views: 1549

Answers (1)

Marcin
Marcin

Reputation: 238747

From docs:

A single Amazon SQS message queue can contain an unlimited number of messages.

So they will not get deleted from your SQS. Instead they will be send to your lambda as a second batch.

Upvotes: 1

Related Questions