@flexfactory/message-daemon
v1.1.0
Published
A daemon for publishing messages from DB tables
Downloads
1
Readme
message-daemon
Install
npm i --save @flexfactory/message-daemon
Usage
const MessageDaemon = require('@flexfactory/message-daemon');
const Store = require('../services/Store');
const Rabbit = require('../services/Rabbit');
const log = require('../logger');
MessageDaemon.start(
Store.knex,
Store.pg,
Rabbit.publish,
log
);
process.on('SIGTERM', () => {
process.exit();
});