Replies: 1 comment 2 replies
-
I do not think spawning hundreds of queues is a good pattern because it will be difficult to manage. You can use 1 queue and just simulate named processors with a switch case if you do not have any other requirements for instance that the jobs should be processed evenly across the different job names. In that case you would need something like the groups' feature in the Pro version: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apologies in advance if this is answered elsewhere and I missed it.
We have some ~100 different types of jobs, unrelated to each other. Previously in
bull
we were using the named processor pattern and process the jobs in a single queue.I understand that the named processor was just syntactic sugar, but it is a little unclear to me what are the tradeoffs between 1) continue using the named processor pattern, maybe even with the
group
feature for more granular control of per job type concurrency, and 2) processing each job type in their own separate queue.What resources would spawning 100's of queues use and is there limitation on number of queues? What pattern would you recommend using?
Beta Was this translation helpful? Give feedback.
All reactions