Skip to content

edappy/seneca-redis-sync-transport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seneca

A Seneca.js transport plugin

seneca-redis-sync-transport

Build Status Gitter

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.

  • Version: 0.1.0
  • Tested on: Seneca 0.7
  • Node: 0.10, 0.12, 4
  • License: MIT

seneca-redis-sync-transport's source can be read in an annotated fashion by,

  • running npm run annotate
  • viewing online.

The annotated source can be found locally at ./doc/redis-sync-transport.html.

If you're using this module, and need help, you can:

If you are new to Seneca in general, please take a look at senecajs.org. We have everything from tutorials to sample apps to help get you up and running quickly.

Install

To install, simply use npm. Remember you will need to install Seneca.js if you haven't already.

npm install seneca-redis-sync-transport

You'll also need redis.

Test

To run tests, simply use npm:

npm run test

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

Contributing

The Senecajs org encourage open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.

License

Copyright Richard Rodger and other contributors 2015, Licensed under MIT.

About

Seneca micro-services message transport over Redis pubsub w/ incr based synchronization

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%