[rabbitmq-discuss] are multiple threads per connection ok for java api?
irrer at umich.edu
Fri Jul 8 15:36:16 BST 2011
For the Java client API, the RabbitMQ documentation says that
a single channel should not be used by more than one thread, but
it does not explicitly say anything about connections.
Is it ok to have multiple threads (each with their own channel)
sharing the same connection? Is there some advantage (performance
or otherwise) to using a single connection verses multiple ones?
BTW - I'm assuming that each connection corresponds to a
socket, and so opening lots of them consumes a somewhat limited
Jim Irrer irrer at umich.edu (734) 647-4409
University of Michigan Hospital Radiation Oncology
519 W. William St. Ann Arbor, MI 48103
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss