Object - http : LoadBalancerRoundRobinRule

Implementation of round robin load balancing strategy.

Methods

Fields

  • index int 0
  • Keep tracks the current point of the Client[]

getNextClient

(Client[] loadBalanceCallerActionsArray)

returns Client | ClientError

Provides an HTTP client which is chosen according to the round robin algorithm.

Parameters

  • loadBalanceCallerActionsArray Client[]
  • Array of HTTP clients which needs to be load balanced

  • Return Type

    (Client | ClientError)
  • Chosen Client from the algorithm or an http:ClientError for a failure in the algorithm implementation