Skip to content

How to enable parallel message processing in nodejs app? #427

Answered by dginzbourg
utkarshdeep asked this question in Help
Discussion options

You must be logged in to vote

@utkarshdeep I'm coming exactly with the same dilemma. The fact that the library waits synchronously only up to 10 messages limits it's usefulness in building event processing when processing takes some time (e.g. webhooks). You can take a look at https://github.com/caiokf/sqs-queue-parallel.git and either use that project or modify/extend this one by not waiting for handleMessages, but queuing it (see https://github.com/caiokf/sqs-queue-parallel/blob/7b8ba01f6c75de4f2c34a6ae4b00a59ef2790fc5/dist/sqs-queue-parallel.js#L126-L127 to queue the messages up to X). I'm not familiar with coffee this project used, but can rework it or merge with sqs-consumer, haven't decided yet.
I see this PR ht…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@dginzbourg
Comment options

@nicholasgriffintn
Comment options

@dginzbourg
Comment options

@nicholasgriffintn
Comment options

Answer selected by utkarshdeep
Comment options

You must be logged in to vote
1 reply
@dginzbourg
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants