npm/nsq-relayer

Name: nsq-relayer

Owner: npm

Description: emit an event with a json payload & get it posted to nsq

Forked from: ceejbot/nsq-relayer

Created: 2018-02-16 19:06:57.0

Updated: 2018-02-16 19:06:59.0

Pushed: 2018-02-16 19:08:42.0

Homepage:

Size: 98

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

nsq-relayer

You emit events structured in a specific way and this tool posts them all to its configured nsq instance.

t createRelayer = require('nsq-relayer');

t relayer = createRelayer({
topic: 'foozle',
nsq: 'http://localhost:5141',
event: 'event-to-listen-for'


ater on
ess.emit('event-to-listen-for', { name: 'my-little-message', type: 'cutie-mark' });
he relayer will then post this to nsq for us with zero effort
Configuration

TBD.

Notes

No attempt is made to retry failed event posts.

Each event is posted as it arrives, without batching. You might want to batch if you're posting many events per second.

Licence

ISC.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.