Replies: 1 comment
-
SQS does not guarantee the exact messages per poll, just the max messages per poll. So if you have 100 messages in queue and have max messages per poll set to 10, the minimum number of polls to SQS is equal 10 but can be more. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
We have been facing some issues with AWS throttling our delete requests for messages using a FIFO queue, and wanted to understand exactly how many send, receive and delete calls we are making when we use
@SqsListener
.Say there are 100 messages in a FIFO SQS queue (all in different message groups).
If we use
@SqsListener
to receive single messages (with all default configurations and maxMessagesPerPoll=10), under the hood will it be polling the AWS queue / using "receive message" operation 10 times, or 100 times?If we use
@SqsListener
to receive a batch (also with defaults and maxMessagesPerPoll=10), since it's a FIFO queue and the messages are in different message groups - we will receive the messages 100 separate times from SqsListener. However, in this case will the queue only be polled 10 times?Thank you for the clarification!
Beta Was this translation helpful? Give feedback.
All reactions