cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Sticky Load Balancing and Failover
Date Mon, 15 Aug 2011 08:20:12 GMT
Hi

On Fri, Aug 12, 2011 at 10:37 PM, anucekay <anucekay@gmail.com> wrote:
> Hai
>
>  I am trying to get some inputs on how best to implement the following:
>
>  - Let us say we have a service that is implemented by a set of servers. The
> service
>   basically provides leaderboard. They expose SOAP interface.
>
>  - Request for a particular leaderboard should ALWAYS go to the same server.
>   If there was a failure in reaching that server, it can be sent to another
> server
>   and subsequent requests for the leaderboard need to go the new server
>
> Kind of sticky loadblancing with a failover capabilities.
>
> In otherwords, given a set of servers and a key, i need a "consistent
> hashing" implemented
> to talk to a set of servers.
>
> 1. Should i just do all of this logic myself? or
> 2. Are there classes that i can take as a base and extend to support my
> use-case?
>
Perhaps you can extend
org.apache.cxf.clustering.AbstractStaticFailoverStrategy and
override one of its methods such as getNextAlternate.
Then you may want to try using it in combination with
FailoverTargetSelector or LoadDistributorTargetSelector.

Cheers, Sergey

> Any pointers/inputs greatly appreciated.
>
> Anu
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Sticky-Load-Balancing-and-Failover-tp4694695p4694695.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Sergey Beryozkin

http://sberyozkin.blogspot.com
Talend - http://www.talend.com

Mime
View raw message