Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 630 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 630 Bytes

node-beanstalkd-proxy

Protocol aware beanstalkd proxy in node for sharding, authentication usecases.

npm install --save beanstalkd-proxy
import BeanstalkdProxy from 'beanstalkd-proxy';

const proxy = new BeanstalkdProxy('upstream_host:11300');

proxy.listen(11300);

Handling upstream unavailability

Since the proxy server will accept incoming connections regardless of the current upstream status the Beanstalkd client must issue a command after connnecting if it wants to be sure it's currently connected to live upstreams.

Extension

proxy.protocol exposes an instance of beanstalkd-protocol