[rabbitmq-discuss] are multiple threads per connection ok for java api?

Jim Irrer irrer at umich.edu
Fri Jul 8 15:36:16 BST 2011

Hi -

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
system resource.


- Jim

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...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110708/ac9e309c/attachment.htm>

More information about the rabbitmq-discuss mailing list