This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (2.1.1) of this package.

2.1.1 2017-10-26 00:21 UTC

This package is not auto-updated.

Last update: 2020-02-21 16:27:33 UTC


Scrutinizer Code Quality Code Coverage Build Status

Blowgun is a library and tool to send and receive messages from AWS SQS. It's mean to be deployed to an AWS web instance and fetch messages that 'commands' the instance to run jobs or tasks.

Developing blowgun

Start a queue subscriber like this:

./bin/blowgun listen local `whoami` dev --node-name mynode --script-dir ../scripts/

This will create and fetch messages from two SQS queues:

  1. local-{whoami}-dev-stack
  2. local-{whoami}-dev-instance-mynode

Since the behaviour of a SQS is that only one instance will normally receive and work on a message, there are two different uses for these queues:

The first queue is for messages where it doesn't matter which instance does the action, for example snapshot actions.

The second queue is for messages that targets an individual instance. This can be used to ensure that all instances goes into maintenance mode.