Neurological Phenomenon Multiplexer
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

seneca-redis-sync-transport

0.1.0 • Public • Published

seneca-redis-sync-transport - a Seneca plugin

Seneca Redis Synchronized Transport Plugin

This plugin provides the redis pub/sub synchronized transport channel for micro-service messages.

NOTE: Listeners are synchronized via redis incr so that messages are handled no more than once.

ALSO READ: The seneca-transport readme has lots of introductory material about message transports. Start there if you have not used a message transport before.

For a gentle introduction to Seneca itself, see the senecajs.org site.

For questions: @rjrodger @zbangazbanga

Current Version: 0.1.0

Tested on: Seneca 0.6.1, Node 0.10.36

Install

npm install seneca-redis-sync-transport

You'll also need redis.

Quick Example

require('seneca')()
  .use('redis-sync-transport')
  .add('foo:two',function(args,done){ done(null,{bar:args.bar}) })
  .client( {type:'redis-sync',pin:'foo:one,bar:*'} )
  .listen( {type:'redis-sync',pin:'foo:two,bar:*'} )

install

npm i seneca-redis-sync-transport

Downloadsweekly downloads

0

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability