Skip to content

How to choose MaxNumberOfMessages? #3441

Answered by aBurmeseDev
1Mark asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @1Mark, thanks for reaching out.

MaxNumberOfMessages can be set to int value between 1 to 10 and its default value is 1 as mentioned in the boto3 documentation. I reached out to SQS team on how it impacts and here's their response:

Using a higher MaxNumberOfMessages helps customers reduce cost by reducing the number of SQS calls when their queue has backlog. It also lets them consume their backlog faster.
The potential downsides are processing latency (if they don’t process the received messages concurrently) or consumer implementation complexity (if they do)

Hope it helps,
John

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@1Mark
Comment options

@aBurmeseDev
Comment options

Answer selected by 1Mark
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