0.2.1 • Published 10 years ago
carrot-consumer v0.2.1
Carrot-Consumer
Simple wrapper around jackrabbit to provide a pipe to another queue onJob, as well as simplify and remove extra boilerplate from workers.
Usage
npm i carrot-consumer --save- See examples folder
You can manually provide the ampq url { queueUrl: 'whatever' } when you instantiate or it will be automatically detected from AMQP_URL environment variable
Local Usage / Development
- Clone this
npm inode examples/generate.jsgive it little bit- Monitor your queue wait for 3k msgs, kill it
- in one terminal
node examples/first.js - in another
node examples/second.js - rerun the generator if you want to watch more useless stuff go by