[rabbitmq-discuss] Subscribers per Channel

Matthias Radestock matthias at rabbitmq.com
Fri Apr 12 11:05:39 BST 2013


On 12/04/13 01:04, Michael Klishin wrote:
> 2013/4/12 Ilya Volodarsky <ilya at segment.io <mailto:ilya at segment.io>>
>
>     1. What is a recommended amount of subscriptions per channel?
>
> Channels are just integers on the wire and a little bit of state on the
> node you are connecting to.
> It's unlikely to cause any issues.

Actually channels can take up a fair amount of memory - tens of kilobytes.

> Error handling is per-channel so it's a better idea to have one channel
> per consumer than multiple
> ones.

I'd say there should be one channel per logical "thread of control" in 
the consuming application. It's perfectly ok for an application that 
wants to consume from several queues to do so via a single channel.


Matthias.


More information about the rabbitmq-discuss mailing list