[rabbitmq-discuss] publish/suscribe model with typed consumers

Emile Joubert emile at rabbitmq.com
Thu Jul 21 11:50:44 BST 2011

Hi Steve,

It is already possible to use the QueueingBasicConsumer in the .net
client to consume from multiple queues in the same way as you can with
the Java client.

You rightly point out that the Subscription class in its current form is
not able to consume from multiple queues.


On 21/07/11 05:12, Steven Taylor wrote:
> will you be extending this functionality to the .net client?  Is it
> there already?  btw: I'm fielding a question from the wider community on
> this for a c# client.  Personally, it's something I've needed in the
> past, but not something I need right now.
> My reading of the spec was it is possible (confirmed by this thread),
> but of the Subscriber class source code in .net is no, it is only set up
> for one queue.
> thanks,
> -Steven
> On 10 June 2011 12:00, Matthias Radestock <matthias at rabbitmq.com
> <mailto:matthias at rabbitmq.com>> wrote:
>     Pierre-Marie,
>     On 10/06/11 11:15, PADIOU Pierre-Marie (MORPHO) wrote:
>         For now, the only solution I see would be to create as many
>         queues as requests
>         types (queueA, queueB, etc), and make consumer listen to the
>         appropriate
>         queues.
>         Thing is:
>         - this implies that consumers create as many threads as queues
>         there are
>         listening from (more than a hundred in my case), which I would
>         like to
>         avoid.
>     Which client are you using? Java? If so, a single consumer thread
>     can happily consume from multiple queues. E.g. you can pass a single
>     QueuingConsumer instance to multiple ch.basicConsume(...) invocations.
>     Regards,
>     Matthias.

More information about the rabbitmq-discuss mailing list