[rabbitmq-discuss] Robust zone-aware topology?

Mordy Ovits mordyovits at yahoo.com
Fri Feb 28 00:45:56 GMT 2014


> Use queue federation - http://www.rabbitmq.com/federated-queues.html. It
> was designed *exactly* for the use case you describe.

I don't think it matches my workflow pattern.  The federated queues documentation says:
"The federated queue will only retrieve messages when it has run out of messages locally, it has consumers that need messages, and the upstream queue has 'spare' messages that are not being consumed."

To my mind, that means that if the miami queue has a consumer and the miami queue is empty, the miami queue will "steal" a message from the new_york queue.  But it could do that even if there are consumers in New York consuming from the new_york queue.  (Right?)  IOW, with federated queues the decision for when a message hops queues is when the downstream "needs" one, not when the upstream queue has no consumers.

Federated queues seem to be more about load balancing, but my pattern is more about HA.  My messages are tasks that are best done locally, but can be done from another zone albeit with a penalty.  So I only want messages to go to another queue if there's no consumer available locally, not when another zone has nothing to do (which may be fine).

If I've misunderstood federated queues, please set me straight.

Thanks for your help,
Mordy


More information about the rabbitmq-discuss mailing list