[zeromq-dev] Load balancing algorithm

Peter Alexander vel.accel at gmail.com
Mon Jun 28 21:52:03 CEST 2010


On Mon, Jun 28, 2010 at 3:46 PM, Peter Alexander <vel.accel at gmail.com> wrote:
> On Mon, Jun 28, 2010 at 2:20 PM, Holger Hoffstaette
> <holger.hoffstaette at googlemail.com> wrote:
>> On Mon, 28 Jun 2010 11:08:13 -0500, Brian Granger wrote:
>>
>>> The current load balancing algorithm used by the XREQ socket is defined in
>>> lb.cpp.  Requests are simply round robin'ed through the active pipes:
>>> [snip]
>>> I am wondering if we can do better than this.  My idea is to pick a client
>>> at random, rather that walking through them sequentially.

Selection of LB algorithm should be optional to the user depending on
their particular use-case.

I don't know the difficulties in implementing this at this point, but
I wonder if you all think it as worthy of consideration as I do.

Peter



More information about the zeromq-dev mailing list