Skip to content

Query regarding SQS polling behaviour of Spring Cloud AWS 3.0.X #1163

Answered by tomazfernandes
bala-sophos asked this question in Q&A
Discussion options

You must be logged in to vote

i) What happens if all the 20 messages polled are processed within 1 second. Will it wait for 5 seconds (which is the value for maxDelayBetweenPolls) , to poll for the next set of messages?

No, as soon as 10 permits are available the framework will perform another poll for 10 messages. The maxDelayBetweenPolls configuration is for partial polls - if let's say only 6 permits were returned, the framework would poll for 6 messages after 5 seconds.

ii) What happens if 19 out of 20 messages polled were processed within 1 second . But 20th message took 3 seconds. Will it wait until the 20 message is processed and only then poll for the next set of messages?

In this case it would poll for 10…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bala-sophos
Comment options

Answer selected by bala-sophos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants