Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to simulate SQS "group ID" ? #671

Closed
skasyn opened this issue Aug 2, 2021 · 3 comments
Closed

Is there a way to simulate SQS "group ID" ? #671

skasyn opened this issue Aug 2, 2021 · 3 comments
Labels
enhancement New feature or request PRO

Comments

@skasyn
Copy link

skasyn commented Aug 2, 2021

I use bull through NestJs. I have jobs that need to be executed one after an other, no matter the order. When I have multiple instance of NestJs, I have multiple consumers. This is problematic because when dependent jobs are executed concurrently, it causes race conditions.

SQS solves this issue with group id. Is this possible with BullMQ ?

@manast
Copy link
Contributor

manast commented Aug 2, 2021

@skasyn unfortunately not yet, but the feature is in the drawing board although it will be more versatile than SQS allowing you to use different rate limiters per group.

@manast manast added the enhancement New feature or request label Aug 2, 2021
@skasyn
Copy link
Author

skasyn commented Aug 2, 2021

Thank you for answering, I will go with SQS for now. I look forward to see this implemented in bullMQ !

@roggervalf roggervalf added the PRO label Oct 1, 2021
@manast
Copy link
Contributor

manast commented Nov 5, 2021

Implemented as a PRO feature so closing: https://docs.bullmq.io/bullmq-pro/groups

@manast manast closed this as completed Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PRO
Projects
None yet
Development

No branches or pull requests

3 participants