-
My team and I are facing a dilemma with our system, which consists of numerous microservices, most of which are written in Node.js. We're planning to utilize BullMQ for task management across these services. Our central question is: should each microservice directly connect to Redis and use the BullMQ library, or should we create a single centralized server that wraps BullMQ and dispatches messages to all other microservices? A significant advantage we see with the centralized server solution is the ease it offers for integrating microservices written in languages other than Node.js. However, we're curious if there are any potential disadvantages with this approach? Has anyone here implemented something similar? We're particularly interested in hearing about your experiences and any challenges you may have faced. Thank you for your time, and we look forward to your insights. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
As you suggest, the advantage of implementing a "proxy" server is that other servers written in different languages can also interact with the queues. However, it is much easier to just use BullMQ directly connected to one or several Redis instances. I would start with the latter and then if needed in the future build a proxy service for the services that require it. |
Beta Was this translation helpful? Give feedback.
As you suggest, the advantage of implementing a "proxy" server is that other servers written in different languages can also interact with the queues. However, it is much easier to just use BullMQ directly connected to one or several Redis instances. I would start with the latter and then if needed in the future build a proxy service for the services that require it.