<p>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?</p>
<div class="gmail_quote">On Jul 16, 2011 9:30 AM, "DarthMaul" <<a href="mailto:screechrocks@gmail.com">screechrocks@gmail.com</a>> wrote:<br type="attribution">> I would like to implement a messaging strategy in RabbitMQ that seems<br>
> really simple, but I can't figure out how to configure it.<br>> Essentially, I want to have all message producers send messages to a<br>> single queue. Meanwhile, there are any number of message consumers<br>
> ready to consume messages off the queue, but each message should be<br>> processed only once.<br>> <br>> So lets say you have 1 producer, 20 messages, and 5 consumers. I want<br>> each consumer to be "assigned" one message to start it off, so 15<br>
> messages are left. Then as each consumer gets done, he grabs the next<br>> one. And so on.<br>> <br>> Essentially, this is what happens at your local bank--one line and<br>> multiple tellers.<br>> <br>
> Any insight into how to pull this off--or a better approach<br>> altogether--is appreciated.<br>> <br>> Thanks.<br>> _______________________________________________<br>> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div>