[rabbitmq-discuss] Should multithreaded application use single or multi channels

rails stammailbox at gmail.com
Sun Mar 9 16:34:40 GMT 2014


My app has multiple threads that publish messages to a single RabbitMQ
cluster.
Reading the rabbit docs<https://www.rabbitmq.com/tutorials/amqp-concepts.html>:
i read the following:

For applications that use multiple threads/processes for processing, it is
very common to open a new channel per thread/process and not share channels
between them.

And I understand that instead of opening multiple connection (expensive)
it is better to open multiple channels.

But why not use a single channel to all threads?
What are the benefits of using multiple channels over a single channel?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140309/20a747c6/attachment.html>


More information about the rabbitmq-discuss mailing list