fold-roll

0.1.0 • Public • Published

ROLL Build Status

Round robin balancer for FOLD

Features

  • 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

Functionality

How to use?

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

Extract from FOLD:

balancer.next(proxyFunction.id, proxyFunction.proxies, FOLD.store, function(host, port){
  proxy.proxyRequest(
      ...
  );
});

The result

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

/fold-roll/

    Package Sidebar

    Install

    npm i fold-roll

    Weekly Downloads

    20

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • av-virlan