0

I have a service with 5 RabbitMQ workers, each running in its own process. Currently, every worker creates its own connection and channel, resulting in 5 connections and 5 channels. To reduce the load on the RabbitMQ server, I want to implement channel pooling using just one shared connection and 5 channels (one per worker). However, since each worker runs in a separate process, I'm unsure how to manage a shared connection pool efficiently. What would be the best approach to achieve this?

I'm wondering if this approach is suitable cause I want to reduce loads to our rabbitmq server and trying to use channel pooling.

1
  • You could threads instead of separate processes, they can share a connection. Can you provide an minimal reproducible example of your current set up. Commented Jul 30 at 7:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.