TCP proxy with a dynamic fallback, designed for high availability systems.
When proxy receives an error from the receiving side (e.g. your backend servers), it redirects the traffic to the next server from the pool, assuring that data gets buffered in between requests.
npm install failover-proxy
var proxy =hosts:host: '127.0.0.1'port: 9001host: '127.0.0.1'port: 9002;proxy;proxy;
$ cat options.json$ failover-proxy options.jsonfailover-proxy listening on 9000