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...@lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
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?
You'll also need to set the basic.qos prefetch to 1. See the section on
"Fair dispatch" in
http://www.rabbitmq.com/tutorials/tutorial-two-python.html.
Matthias.