load balancing algorithms for mesh
npm install mesh-balance
balance.rotate(workers)
Runs workers. Round-robin style.
var workers = Array; var bus = mesh;
balance.least(workers)
Runs the worker with the least number of running operations
balance.random(workers)
runs a random worker