1.2.0 • Published 8 years ago

bloody-simple-sqs v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Bloody simple SQS

A bloody simple Amazon SQS client for Node.js, based on the official AWS SDK.

Build Status for visionmobile/bloody-simple-sqs

Features

  • Simple interface to Amazon SQS;
  • Exposes promise and callback API;
  • Battle-tested under heavy load;
  • Distributed under the MIT license.

Installation

$ npm install bloody-simple-sqs

Requirements

  • Node.js 0.8+

Quick start

Create a new SQS instance

var SQS = require('bloody-simple-sqs');

var queue = new SQS({
 queueName: 'i-am-queue',
 accessKeyId: 'AKIA-access-key',
 secretAccessKey: 'secret-access-key',
 region: 'us-east-1'
});

Append message to queue

queue.add({a: 1, b: 2})
  .then(function (data) {
    console.log('Message sucessfully appended to queue with id ' + data.id);
  })
  .catch(function (err) {
    console.error(err);
  });

Pull message from queue

queue.pollOne()
  .then(function (message) {
    if (!message) {
      console.log('The queue has no messages');
      return;
    }

    console.log(message);
  })
  .catch(function (err) {
    console.error(err);
  });

API Docs

For further information on Bloody Simple SQS methods please refer to the API Docs.

About this project

Amazon Simple Queue Service is an excellent queue-as-a-service solution - simpler than the notorious RabbitMQ, yet powerfull, reliable and inexpensive.

AWS provides a Node.js SDK, but it's complex and repetitive. Bloody-simple-sqs aims to hide the complexity under a simple well-defined API, so that the developers focus on using the SQS, rather than understanding the internal mechanisms of AWS-SDK.

License

MIT

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.4.0-beta.3

9 years ago

0.4.0-beta.2

9 years ago

0.4.0-beta.1

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago