carrot-consumer

0.2.1 • Public • Published

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 i
  • node examples/generate.js give 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

Readme

Keywords

Package Sidebar

Install

npm i carrot-consumer

Weekly Downloads

1

Version

0.2.1

License

MIT

Last publish

Collaborators

  • hotelquickly
  • emris