Skip to content

Explain SqsListener concurrency #1203

Answered by tomazfernandes
lazystone asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lazystone, you're correct, if you set maxConcurrentMessages for a value greater than 10 it'll combine the result of multiple polls.

And as @maciejwalkowiak pointed out, that means you'll get messages up to that amount, but SQS does not guarantee to always deliver that amount.

And as you found out, the more messages in SQS, the higher the chances you'll receive full batches.

You don't need to manually configure BATCH mode - just having the List parameter will configure that for you.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@lazystone
Comment options

@maciejwalkowiak
Comment options

@lazystone
Comment options

@tomazfernandes
Comment options

Answer selected by lazystone
@lazystone
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants