0.0.11 • Published 11 years ago

salsify v0.0.11

Weekly downloads
48
License
-
Repository
github
Last release
11 years ago

node-salsify

Like celery for node.js.

Uses AWS Simple Queue Service or an in memory queue for moving messages around. More backends will be added as needed.

Todo

  • Support storing results somehow.

    Usage

    Have a look at ./examples ot ./test/salsify.test.js, but basically:

// Here is a simple worker bin.
var salsify = require('salsify').configure(function(done){
    salsify.key = 'myAwsKey';
    salsify.secret = 'myAwsSecret';
    done();
}).use('sqs');

new salsify.Worker()
    .on('job', function(data, done){
        console.log('Got a job', data);
        done(null, true);
    })
    .listen('myqueue');

// Then in your app, you can push messages to it.
var salsify = require('salsify').configure(function(done){
    salsify.key = 'myAwsKey';
    salsify.secret = 'myAwsSecret';
    done();
}).use('sqs');

// ... Some app code and stuff ...
function doSomethingLater(){
    salsify.delay('myqueue', {'a': 'Any object you want'});
}

Install

 npm install salsify

Testing

git clone
npm install
npm test
0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago