# sqs-taskqueue

> A quick way to replace Kue with Amazon SQS

Latest version **0.3.2** (published 2018-06-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install sqs-taskqueue
pnpm add sqs-taskqueue
yarn add sqs-taskqueue
bun add sqs-taskqueue
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2018-06-01 |
| First published | 2017-09-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Derek Bui |
| Maintainers | dungbx |
| Keywords | kue, aws, sqs, node, javascript, es6 |

## Links

- npm: https://www.npmjs.com/package/sqs-taskqueue
- Repository: https://github.com/dungbx/sqs-taskqueue
- Homepage: https://github.com/dungbx/sqs-taskqueue#readme
- Issues: https://github.com/dungbx/sqs-taskqueue/issues
- npm.io page: https://npm.io/package/sqs-taskqueue

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.3.2 (latest) — 2018-06-01
- 0.3.1 — 2018-06-01
- 0.3.0 — 2018-05-29
- 0.0.1 — 2017-09-27

## README

# SQS Task Queue
[![Build Status](https://travis-ci.org/dungbx/sqs-taskqueue.svg)](https://travis-ci.org/dungbx/sqs-taskqueue) [![Code Climate](https://codeclimate.com/github/dungbx/sqs-taskqueue/badges/gpa.svg)](https://codeclimate.com/github/dungbx/sqs-taskqueue) [![Test Coverage](https://codeclimate.com/github/dungbx/sqs-taskqueue/badges/coverage.svg)](https://codeclimate.com/github/dungbx/sqs-taskqueue)

Are you using [Kue](https://github.com/Automattic/kue) with Redis backend?

This a quick way to replace Kue with Amazon SQS backend.

Instead of:
```js
var kue = require('kue'),
	queue = kue.createQueue();
```

Do like this:

```js
var AWS = require('aws-sdk')
var sqs = new AWS.SQS({
  region: '',
  accessKeyId: '',
  secretAccessKey: ''
})

var SQSWorker = require('sqs-taskqueue'),
  queue = new SQSWorker(
    sqs,
    'https://sqs.ap-northeast-1.amazonaws.com/XXXXXXXXXX/',
    'yourapp'
  );
```

The rest they are the same!!!

For example:
```js
var job = queue.create('email', {
    title: 'welcome email for tj'
  , to: 'dummy@google.com'
  , template: 'welcome-email'
}).save( function(err){
   if( !err ) console.log( job.id );
});
```

---
_Source: https://npm.io/package/sqs-taskqueue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
