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.