[rabbitmq-discuss] Single Queue With Multiple Consumers
Simone Busoli
simone.busoli at gmail.com
Sat Jul 16 09:40:30 BST 2011
I think you can achieve this by simply using a single queue, having your
producer publish directly to it and the consumers consuming from it. Does
this make sense?
On Jul 16, 2011 9:30 AM, "DarthMaul" <screechrocks at gmail.com> wrote:
> I would like to implement a messaging strategy in RabbitMQ that seems
> really simple, but I can't figure out how to configure it.
> Essentially, I want to have all message producers send messages to a
> single queue. Meanwhile, there are any number of message consumers
> ready to consume messages off the queue, but each message should be
> processed only once.
>
> So lets say you have 1 producer, 20 messages, and 5 consumers. I want
> each consumer to be "assigned" one message to start it off, so 15
> messages are left. Then as each consumer gets done, he grabs the next
> one. And so on.
>
> Essentially, this is what happens at your local bank--one line and
> multiple tellers.
>
> Any insight into how to pull this off--or a better approach
> altogether--is appreciated.
>
> Thanks.
> _______________________________________________
> 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/20110716/4004a8f1/attachment.htm>
More information about the rabbitmq-discuss
mailing list