[zeromq-dev] [Request] Custom load balancer/routers

Stefan Sandberg keffo.sandberg at gmail.com
Sat Oct 2 12:13:56 CEST 2010


  Currently I have a Route class, which can split itself into Path and 
Payload.
Everything I do happens through that class, so it has it's own Recv 
functionality, which will take identity envelopes into account,
and thus able to Send backt the same way.
Since the full route path is treated atomically like that, storing 
incoming instances makes it trivial to mess around with various types of 
loadbalancing,
just send using the same Route but different payload.
It pretty much hides everything about the envelopes I guess. :)

Another possibly more flexible api could be something stack-based, where 
you push 'route-vertices' to construct a path.. ?


On 2010-09-30 20:53, Pieter Hintjens wrote:
> On Thu, Sep 30, 2010 at 10:08 AM, Stefan Sandberg
> <keffo.sandberg at gmail.com>  wrote:
>
>> As you can probably tell, I've solved all these things myself, and I'm
>> guessing everyone else does too, which is why it
>> should have been part of the lib already :)
> It would be interesting to know how you and others have solved this
> (routing abstractions).  The API I used in the guide was 'read/send
> whole message including envelopes'.  Maybe if we can find common
> patterns we can write a standard API on top of 0MQ.  There's no reason
> it has to go into the core, at least not immediately.  Experimentation
> should happen outside the core.
>
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list