[zeromq-dev] Load distribution vs fail over

Martin Sustrik sustrik at 250bpm.com
Thu Apr 8 13:49:54 CEST 2010

Hi Caroline,

> The failover scenarios that I have in mind are similar to what Gonzalo and
> Martin have described in the forum earlier.  
> Suggested code snippet copied below:
> socket_t s (ctx, ZMQ_DOWNSTREAM);
> s.setsockopt (ZMQ_PRIORITY, 1);
> s.bind ("tcp://eth0:5555");
> s.setsockopt (ZMQ_PRIORITY, 2);
> s.bind ("tcp://eth0:5556");
> This way ZMQ is acting like a directory service, automatically directing
> applications to fail over to connect to the secondary port if the primary is
> unavailable.

Ok. Got it. This is not a priority at the moment. What we are currently 
working on are multi-part messages and multi-hop request/reply.

Feel free to contribute or sponsor the development though!


More information about the zeromq-dev mailing list