[zeromq-dev] Implementing failover in client side

Iñaki Baz Castillo ibc at aliax.net
Wed Oct 13 19:45:56 CEST 2010


2010/10/13 Pieter Hintjens <ph at imatix.com>:
>> 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.

Sounds ok :)

Regards.


-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the zeromq-dev mailing list