bbc / sqs-consumer

Build Amazon Simple Queue Service (SQS) based applications without the boilerplate
https://bbc.github.io/sqs-consumer/
Other
1.74k stars 333 forks source link

feat: adding the ability to execute the consumer concurrently #449

Closed nicholasgriffintn closed 5 months ago

nicholasgriffintn commented 9 months ago

Note: This is complete discovery currently, it is not expected that it will work, nor does it... Please do not attempt to use it.

Resolves #397

Description:

The aim of this PR is to add the ability to execute SQS Consumer concurrently, meaning that it will keep triggering polls past the batch size and while other messages are being processed, up to a concurrent limit.

Type of change:

Why is this change required?:

Currently, SQS Consumer restricts the amount of messages that can be processed to the batch size from AWS, this means that users are limited to processing a maximum of 10 messages at a time.

Code changes: