Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/articulate/squiss-jobs
SQS-backed job queue
https://github.com/articulate/squiss-jobs
aws-sqs functional-programming job-queue nodejs
Last synced: about 1 month ago
JSON representation
SQS-backed job queue
- Host: GitHub
- URL: https://github.com/articulate/squiss-jobs
- Owner: articulate
- Created: 2016-09-09T19:05:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T22:06:46.000Z (9 months ago)
- Last Synced: 2024-04-24T17:58:29.381Z (7 months ago)
- Topics: aws-sqs, functional-programming, job-queue, nodejs
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 64
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# squiss-jobs [![npm version](https://img.shields.io/npm/v/squiss-jobs.svg)](https://www.npmjs.com/package/squiss-jobs) [![npm version](https://img.shields.io/npm/dm/squiss-jobs.svg)](https://www.npmjs.com/package/squiss-jobs)
SQS-backed job queue.
## Quick start guide
```js
// instantiate your queue
const queue = require('squiss-jobs')({
queueUrl: process.env.JOBS_URI,
region: process.env.AWS_REGION
})// create a job handler
const foo = payload =>
Promise.resolve(payload)
.then(/* do something useful */)// register the job
queue.handle('foo', foo)// start processing jobs
queue.start()// send a job onto the queue
queue.send('foo', { bar: 'baz' })
```## v1 docs
- [API docs](https://github.com/articulate/squiss-jobs/blob/master/docs/api.md)
- [CLI docs](https://github.com/articulate/squiss-jobs/blob/master/docs/cli.md)For `v0` docs, see the [original API](https://github.com/articulate/squiss-jobs/blob/f9690a36b4eafd962516236af9e1709efaa00e71/README.md).