0.1.10 • Published 4 years ago

@forest.host/broker v0.1.10

Weekly downloads
9
License
ISC
Repository
github
Last release
4 years ago

Broker

Simple ETCD backed job queue

This package is in a very early stage and for the moment only supports simple leader election, but the plan is to have it be a fully fledged job queue.

Start it

Create a new broker instance:

const broker = new Broker({ queue: 'default' });
// Attach to ETCD queue
broker.attach();

Config parameters

queue (mandatory)

Name of queue to join, this will be used as ETCD key prefix.

etcd.hosts

String or array of etcd hosts that is passed to @forest.host/etcd3

verbosity

Log level of broker module

timeout

Etcd leader election timeout

campaign.value

Etcd leader election campaign value

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago