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

Sequential parallel queues - Question #1752

Closed
atullal opened this issue May 27, 2020 · 7 comments
Closed

Sequential parallel queues - Question #1752

atullal opened this issue May 27, 2020 · 7 comments

Comments

@atullal
Copy link

atullal commented May 27, 2020

Implementing many sequential queue which are parallel to each other

Hi,
For my use case I need to implement many parallel queue which will contain jobs which needs to run in sequence. The jobs would be small and not very resource intensive, what is the best way to implement this with bull.js and if it is even possible.

Screenshot 2020-05-27 at 6 08 09 PM

PS - Using Nest js, solution in that would be great otherwise, node js will do.

@manast
Copy link
Member

manast commented May 31, 2020

There is nothing fundamentally wrong in scaling queues horizontally as in your diagram, however it may be complicated to handle from admin point of view if you have an unbound number of queues. It will also be difficult to visualize with current UIs. Finally it may be problematic if "n" becomes too large since you may run out of connections to redis.

@atullal
Copy link
Author

atullal commented Jun 1, 2020

Thanks for the reply, I plan to create queues on demand and destroy queue when it is drained of jobs. Having an overlord queue to manage creation and deletion of queues as well as managing the number of queues "n" could be a solution here. This type of implementation should be okay with bull, right?

@EmanuelAguilar74
Copy link

EmanuelAguilar74 commented Dec 9, 2020

can you share your insights about your implementation? how scalable is this?

@stale
Copy link

stale bot commented Jul 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 12, 2021
@n1ru4l
Copy link
Contributor

n1ru4l commented Jul 12, 2021

@Stale no

@stale stale bot removed the wontfix label Jul 12, 2021
@manast
Copy link
Member

manast commented Jul 14, 2021

Currently I do not have a solution for these kind of requirements in plain javascript, as a Redis module I have one on the drawboard, but I know modules are problematic since not everybody is able to use them.

@stale
Copy link

stale bot commented Sep 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 12, 2021
@stale stale bot closed this as completed Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants