[rabbitmq-discuss] publish/suscribe model with typed consumers
PADIOU Pierre-Marie (MORPHO)
pierre-marie.padiou at morpho.com
Thu Jun 23 15:16:29 BST 2011
Thank you all for your answers.
I didn't know a single consumer could subscribe to multiple queues (like Matthias said) : it works perfectly and that's the best solution!
Pierre-Marie
From: David Young [mailto:d.young at cabinfeversoftware.com]
Sent: Friday, June 10, 2011 8:08 PM
To: PADIOU Pierre-Marie (MORPHO); rabbitmq-discuss at lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] publish/suscribe model with typed consumers
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<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.
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com<mailto:rabbitmq-discuss at lists.rabbitmq.com>
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
#
" Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés."
******
" This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system."
#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110623/d6b9cf92/attachment-0001.htm>
More information about the rabbitmq-discuss
mailing list