[zeromq-dev] Implementing failover in client side

Pieter Hintjens ph at imatix.com
Wed Oct 13 19:28:39 CEST 2010


On Wed, Oct 13, 2010 at 5:18 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:
> 2010/10/13 Pieter Hintjens <ph at imatix.com>:
>> The code isn't finished but here is a design sketch:
>>
>> http://github.com/imatix/zguide/blob/master/articles/reliability.md

> Hi, as I can read in that page the element doing the failover is a
> queue rather than the client itself, am I right? Does it mean that a
> single client (REQ socket) couldn't not use this failover feature by
> itself?

Sure it could, it just needs to implement the same worker management
logic as the queue does.  It's not very complex but in a realistic
case needs configuration, logging, etc. and becomes enough work to
stick into a separate layer.  In my C examples I'd put this into a ZFL
class, or a queue.  In another language, other abstractions would
work.

-
Pieter Hintjens
iMatix - www.imatix.com



More information about the zeromq-dev mailing list