[rabbitmq-discuss] Binding to multiple queues in a round-robin style using the PIKA library

Stephen Young stephen.t.young at gmail.com
Thu Feb 2 16:36:36 GMT 2012


Hi there,

I'm working on a system that receives a variety of different message
types from different source queues, like the following:

client binds to Q1, Q2, Q3
server posts to Q2
client reads request and updates database. If something goes awry, the
client sends a basic_reject to requeue the request

however, this seems to cause some problems in that the client will see
a message in Q2, but need to have parsed a message in another queue
first. However the clients seem to keep polling the same queue until
success. Is there any better way to implement this system? Currently
I'm defeating the deadlock by having enough clients + some dedicated
clients on the bottleneck queues, but would prefer if each client
could run autonomously and read from queues in a pattern / priority of
some sort.

Cheers,
Stephen


More information about the rabbitmq-discuss mailing list