Replies: 1 comment
-
There is no max limit on the amount of queues that you can have, and you could create that many queues, however the problem is that it gets quite cumbersome to handle if you have one per user for instance and the number of queues gets into the hundreds or thousands. Management and debugging will be quite difficult as you need to navigate through all the queues. In BullMQ Pro we have support for groups which address exactly this issue: https://docs.bullmq.io/bullmq-pro/groups |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently using express.js with bullMQ.
In my app's entry point: index.ts, I am calling the function:
in my initializeWorker.ts, I am declaring the workers.
This setup is working fine for me for now on a PROD env. I am using pm2 to start my application:
and my config for pm2:
Currently, my setup, which includes Elasticache, relies on a single shared public queue to manage tasks from multiple clients of my API product. I'm contemplating the feasibility of setting up dedicated queues and workers for each client to manage their API requests more efficiently.
For instance, when User A initiates a task, it's initially processed through the shared public queue. However, I'm interested in whether it's possible to then dynamically allocate a dedicated queue and specific workers for that user based on their unique configurations. This way, should User A make subsequent requests, they would be directed to their personalized queue.
how many max queues can I have? I am also thinking manually create X (the number of client) queue when I start my application. But not sure if this is feasible too.
I'm looking for clarity on whether this approach can be realized effectively. Thank you for any insights or advice you can provide.
Beta Was this translation helpful? Give feedback.
All reactions