[rabbitmq-discuss] Custom load balancing among consumers?

Brian Reischl breischl at gmail.com
Mon Mar 31 16:00:37 BST 2014


You might be able to implement this on the client side using a different 
queue for each message type, and having the clients implement the 
round-robin themselves. 

So what would happen if you got a bunch of type1 messages and no type2's? 
Do all of the types have to go to the same consumer? 

On Sunday, March 30, 2014 5:48:28 PM UTC-6, Otávio Leitão wrote:
>
> Hello,
>
> I'm looking for a way of customizing the load balancing strategy used to 
> deliver messages from queues to consumers. Is there a way of doing this?
>
> In my case, I have messages with a "type" attribute and I want to deliver 
> messages based on this attribute. For example, if I have a queue with the 
> following messages (in order):
>
> #1: msg-type1
> #2: msg-type1
> #3: msg-type2
> #4: msg-type3
> #5: msg-type2
>
> I want them to be delivered and processed in the following order:
> #1: msg-type1
> #3: msg-type2
> #4: msg-type3
> #2: msg-type1
> #5: msg-type2
>
> I'ts a round-robin strategy among message "type" attribute. 
>
> Does anyone have a solution for that?
>
> Thanks in advance.
>
> Otávio.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140331/6cc78a6a/attachment.html>


More information about the rabbitmq-discuss mailing list