BullMQ Sandboxed Processors and Database Connection #2601
Unanswered
angelocala94
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The processes are reused, but your case seems to be pretty much IO-bound so I would try to increase the concurrency a lot instead of using sandboxed processors, as you would get more output and can better control the connections to Postgres |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've implemented an application using BullMQ and its sandboxed processors. My job setup is as follows:
Given my setup, I am concerned about the number of database connections being opened due to the potential creation of new Prisma Clients in each child process.
Questions:
I want to ensure that I don't exceed the connection limits of my db connection pool.
Any guidance or best practices on this will be much appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions