# sqs-bull

> SQS message consumer

Latest version **1.2.3** (published 2022-12-14) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2022-12-14 |
| First published | 2016-12-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 20 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Team Platform |
| Maintainers | ghostmonitor |

## Links

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

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.961.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2
- [underscore](https://npm.io/package/underscore.md) ^1.10.2

## Recent versions

- 1.2.3 (latest) — 2022-12-14
- 1.2.1 — 2021-11-08
- 1.1.0 — 2021-08-06
- 1.0.0 — 2021-01-08
- 0.2.5 — 2021-01-07
- 0.2.4 — 2021-01-06
- 0.2.3 — 2020-06-16
- 0.2.2 — 2020-06-15
- 0.2.1 — 2020-06-15
- 0.1.17 — 2018-09-05
- 0.1.16 — 2018-09-05
- 0.1.14 — 2018-09-03
- 0.1.13 — 2018-08-31
- 0.1.11 — 2018-08-30
- 0.1.9 — 2017-10-11
- … 6 more at https://npm.io/package/sqs-bull/versions

## README

# Install
```bash
$ npm i @ghostmonitor/sqs-bull
```

# Usage
```javascript

const QueueWrapper = require('@ghostmonitor/gm-queue-wrapper');
const SomeQueueConfig = new QueueWrapper('gm-some-service');

const SqsBull = require('sqs-bull');
const queue = new SqsBull({
  queueUrl: SomeQueueConfig.getQueueUrl(), // required
  visibilityTimeout: 30
  attributeNames: [],
  messageAttributeNames: [],
  concurrency: 1,
  longPollWaitTimeSeconds: 20,
  authenticationErrorTimeout: 10000,
  sqsSignatureVersion: 'v4',
  disableMessageProcessingTimeout: false,
  processNonJson: false,
  restartOnUnexpectedError: true,
  unexpectedErrorDelay: 10000
});

queue.on('processing_error', (err) => {
  console.error('Error processing message', err.message, err.stack)
})

queue.process(async (message) => {
  // do processing...
})

```

# Testing
```bash
$ docker run -p 9324:9324 -p 9325:9325 softwaremill/elasticmq

$ npm test
```

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