[zeromq-dev] Implementing failover in client side
Iñaki Baz Castillo
ibc at aliax.net
Tue Oct 5 13:11:07 CEST 2010
2010/10/5 Pieter Hintjens <ph at imatix.com>:
> Hi Brian,
>
> I've not yet covered reliable request-reply / failover in the user
> guide yet. 0MQ doesn't do it directly.
>
> I'd probably look at using XREQ rather than REQ, so you can keep the
> socket open, and possibly even XREP so you can explicitly address the
> different servers. Look at the custom load balancing and LRU examples
> in Ch3 of the guide, they may help.
>
> Most probably you'll want a queue device in between your applications
> and your servers that does LRU workload distribution and retries if a
> server dies / does not respond.
Thanks, I'll take a look to it.
BTW, is it planned to add some mechanism for failover in ZMQ? (I mean
from client's point of view).
Thanks a lot.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the zeromq-dev
mailing list