cra

crane

Diligent work queue for Node.js.

Showing:

Popularity

Downloads/wk

5

GitHub Stars

13

Maintenance

Last Commit

8yrs ago

Contributors

0

Package

Dependencies

5

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Crane

Build Coverage Quality Dependencies Tips

Crane is a message queue middleware layer for Node. Applications can be constructed by using middleware and defining routes.

This architecture has been proven effective by Express, which provides HTTP middleware. Crane adopts this approach, repurposing it for use with message queues, allowing workers to be built quickly and easily, using patterns familiar to Node.js developers.

Install

$ npm install crane

Usage

var crane = require('crane');
var app = crane();

app.work('tasks/email', function(msg, next) {
  console.log('sending email to: ' + msg.body.to);
  msg.ack();
});

Adapters

Adapters are used to connect to message queues, receiving messages and dispatching those messages to the application for processing.

The following table lists commonly used strategies:

AdapterDeveloper
AMQPJared Hanson

Tests

$ npm install
$ make test

Credits

License

The MIT License

Copyright (c) 2011-2014 Jared Hanson [http://jaredhanson.net/](http://jaredhanson.net/)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial