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

Matthias Radestock matthias at rabbitmq.com
Fri Jun 10 12:00:51 BST 2011


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