Class PowerOfTwoChoicesLoadBalancer

  • All Implemented Interfaces:
    LoadBalancer

    public class PowerOfTwoChoicesLoadBalancer
    extends Object
    implements LoadBalancer
    Select two random destinations and then select the one with the least assigned requests. This avoids the overhead of least-requests and the worst case for random where it selects a busy destination.