algo.RoundRobinLoadBalancer()
Description
Creates an instance of RoundRobinLoadBalancer.
Syntax
new algo.RoundRobinLoadBalancer([ ...targets ])new algo.RoundRobinLoadBalancer({ ...weightedTargets })
Parameters
new algo.RoundRobinLoadBalancer(targets, unhealthy?)
targetsunhealthy?
An array of strings representing the targets, or an object of key-value pairs where keys are the targets and values are the weights.
A Cache object storing unhealthy targets.
Return Value
A RoundRobinLoadBalancer object with the specified targets.