[rabbitmq-discuss] Routing on multiple criteria but hitting only one consumer

Emile Joubert emile at rabbitmq.com
Mon Apr 16 10:58:02 BST 2012


On 15/04/12 10:04, AgileZebra wrote:

> * We have host1 and host2.
> * Host1 handles jobs of classA and classB; host2 handles jobs of
> classB and classC.
> * If we route a job of classA, only host1 will pick it up; if we route
> a job of classB, either host1 or host2 will pick it up (based on their
> current load / first available) but never both.

Can you constrain the routing so that messages are only routed to one
queue, and you have one queue per class? Then host1 can subscribe to the
queues for classA and classB, and host2 can subscribe to the queues for
classB and classC.


More information about the rabbitmq-discuss mailing list