An efficient load balancer that operates on Activity[Set[ServiceFactory[Req, Rep]]].
A thin interface around a Balancer's contructor that allows Finagle to pass in context from the stack to the balancers at construction time.
Constructor methods for various load balancers.
Constructor methods for various load balancers. The methods take balancer specific parameters and return a LoadBalancerFactory that allows you to easily inject a balancer into the Finagle stack via client configuration.
A load balancer that balances among multiple connections, useful for managing concurrency in pipelining protocols.
A load balancer that balances among multiple connections, useful for managing concurrency in pipelining protocols.
Each endpoint can open multiple connections. For N endpoints, each opens M connections, load balancer balances among N*M options. Thus, it increases concurrency of each endpoint.
We expose the ability to configure balancers per-process via flags.
We expose the ability to configure balancers per-process via flags. However,
this is generally not a good idea as Finagle processes usually contain many clients.
This will likely go away in the future or be no-op and, therfore, should not be
depended on. Instead, configure your balancers via the configured
method on
clients:
{{ val balancer = Balancers.aperture(...) Protocol.configured(LoadBalancerFactory.Param(balancer)) }}
(Since version 2015-06-15) Use com.twitter.finagle.loadbalancer.Balancers per-client.
A thin interface around a Balancer's contructor that allows Finagle to pass in context from the stack to the balancers at construction time.
Balancers for a collection of available balancers.