Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

silverstripe-platform/blowgun

Repository files navigation

Blowgun

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.

About

Tools to send and receive messages with AWS SQS

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors