hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Smith <ryan.justin.sm...@gmail.com>
Subject Re: looking for reliable failover pattern
Date Sun, 29 May 2011 11:34:05 GMT
List<String> blacklistedIPs = new ArrayList<String>();

if (!isIpAvailable(myIP)) {
    if () {

    }
}

On Sat, May 28, 2011 at 12:51 PM, Dan Checkoway <dcheckoway@gmail.com>wrote:

> Ok, thanks.  So it does sound like I'm going to need to roll my own.
> No existing examples of this out there already?  i.e. something that
> maintains pools of HttpClient objects or whatever, and does retry
> periodically after failover, using expoential backoff, or what not.
>
> No problem rolling my own, but I'd love to reuse somebody else's hard
> work if possible.  :-)
>
> Dan
>
> On Sat, May 28, 2011 at 12:44 PM, Oleg Kalnichevski <olegk@apache.org>
> wrote:
> > On Sat, 2011-05-28 at 12:37 -0400, Dan Checkoway wrote:
> >> Oleg,
> >>
> >> Thanks for the reply.  Ideally the "spray" approach is what I'm looking
> for.
> >>
> >> Dan
> >
> > Dan,
> >
> > This is not supported out of the box but should not be that difficult to
> > implement. You just need to maintain a list of IP addresses or hostnames
> > and be able to temporarily 'blacklist' those that do not respond.
> >
> > Oleg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message