[rabbitmq-discuss] Consuming queues using the same connection vs multple connections

Alexandru Scvorţov alexandru at rabbitmq.com
Thu Feb 17 10:28:26 GMT 2011


Hi,

> Can anyone tell me the drawbacks and/or advantages of consuming 2
> queues on 2 channels in a single connection versus consume them using
> 1 channel for each (so 2 connections at all)?

I assume you meant ``1 connection for each''.

Performance-wise there's not much difference.

One connection for each means that hard-errors on one channel will only
take down one of the two connections.  In addition, some AMQP methods
affect the entire connection, some more connections could mean more
fine-grained control.

You probably don't want multiple connections, though.

Cheers,
Alex

On Thu, Feb 17, 2011 at 10:38:59AM +0100, Alfonso Pantoja wrote:
> Hi,
> 
> Can anyone tell me the drawbacks and/or advantages of consuming 2
> queues on 2 channels in a single connection versus consume them using
> 1 channel for each (so 2 connections at all)?
> 
> Thank you in advance
> 
> 
> Alfonso
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list