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

David Young d.young at cabinfeversoftware.com
Fri Jun 10 19:07:57 BST 2011


The AMQP gem in ruby can also subscribe to multiple queues using a single
thread.

On Fri, Jun 10, 2011 at 6:00 AM, Matthias Radestock
<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.
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110610/47b0a174/attachment.htm>


More information about the rabbitmq-discuss mailing list