[rabbitmq-discuss] Connection and Channel lifecycle
Adam Rabung
adamrabung at gmail.com
Fri Dec 16 22:25:50 GMT 2011
Hello,
I've been reading up on this quite a bit, but I'm still unclear about
some general principles of how to use connections and channels
correctly. For example, say I have a "worker pool" with 40
QueueingConsumers (ie 40 separate channels). I believe it is
completely fine to keep these channels (and underlying connection(s))
open indefinitely, is this correct? In this long-running situation,
what is the optimal number of underlying connections for these 40
channels? I believe from a throughput standpoint, the answer might be
40. From a resource conservation standpoint, the answer would be 1.
I will have many of these worker pools, so both considerations are
important. Can someone give pointers on how to balance those two
concerns?
Does anyone use connection or channel pooling?
Any pointers much appreciated,
Adam
PS. Thanks for great answers to all of my crazy questions so far!
More information about the rabbitmq-discuss
mailing list