[rabbitmq-discuss] Load Balancing Consumers

Eugene Kirpichov ekirpichov at gmail.com
Thu Sep 8 15:20:49 BST 2011


Oops, not zero, but 1.

On Thu, Sep 8, 2011 at 6:20 PM, Eugene Kirpichov <ekirpichov at gmail.com> wrote:
> You will achieve this with RabbitMQ out of the box. It already does
> loadbalancing between consumers, giving exactly what you want if you
> set a low or zero value for prefetch (BasicQos).
>
> On Thu, Sep 8, 2011 at 6:18 PM, Uday Subbarayan
> <uday.subbarayan at yahoo.com> wrote:
>> Hello All,
>>          I have a need to load balance consumers on a queue. I saw a similar
>> thread last month-
>> http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-August/014533.html
>>
>> My requirements are little different. Publisher ----> sends messages --->
>> Queue <------ 1 or more consumers listens on this queue.
>>
>> All my consumers are the same application. I need to load balance(simple
>> round robin) the consumers so that my load gets distributed. For example if
>> i have 2 consumers and publishers sends 2 messages to the queue, message 1
>> should go to consumer 1 and message 2 should to consumer 2 and this logic
>> repeats.
>>
>> Any idea/thoughts how i can achieve this in Rabbit MQ?
>>
>> Thanks,
>> -Uday.
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
>
>
> --
> Eugene Kirpichov
> Principal Engineer, Mirantis Inc. http://www.mirantis.com/
> Editor, http://fprog.ru/
>



-- 
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/


More information about the rabbitmq-discuss mailing list