node package manager


RoundRobin balancer for FOLD


Round robin balancer for FOLD

  • Performs round robin check for a list of available proxies
  • Uses abstract store
  • Exports a single one-purpose method
  • Can be abstrated and used in other mechanisms


The balancer defines a next(_id, _proxyList, _store, _callback) method that can be called:

Extract from FOLD:, proxyFunction.proxies,, function(hostport){

The method executes the callback and sends the host and port for the proxy that should be called