0.0.8 • Published 6 years ago

postorder v0.0.8

Weekly downloads
3
License
BSD
Repository
github
Last release
6 years ago

Postorder

Minimal work queue in postgres.

Installation

npm install postorder

Producer usage

var client = require('postorder').create('pg://localhost/db');
client.send({ my: 'word' });

Consumer usage

var client = require('postorder').create('pg://localhost/db');
client.listen(function (err, msg) {
  if(err) throw err;
  console.log(msg.my); //> 'word'
});

// you can also use shift to only take a single work item.
client.shift(function (err, msg) { });
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago