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:*'} )

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    3

Package Sidebar

Install

npm i seneca-redis-sync-transport

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ckiss
  • iantocristian
  • mihaidma
  • wyatt