[rabbitmq-discuss] Multiple listener over single connection in rabbitmq-c.

Michael Klishin mklishin at gopivotal.com
Tue Feb 18 10:14:20 GMT 2014

On 18 Feb 2014, at 04:40, Sampat Patle <sampatkumar04 at gmail.com> wrote:

> I am new to rabbitmq. I would like to know whether is it possible to have multiple channels and multiple listener over single connection using threads. 

You can have multiple channels per connection (in fact, that’s the whole point of channels)
and multiple consumers per connection (or channel). This can be combined with threads.

Concurrency safety rule of thumb is: don’t share channels between threads, especially
when publishing. Having N threads, 1 per consumer, on the same channel may be safe
depending on client implementation.


Software Engineer, Pivotal/RabbitMQ

More information about the rabbitmq-discuss mailing list