2017 © Pedro Peláez
 

library blowgun

image

silverstripe/blowgun

  • Thursday, October 26, 2017
  • by stojg
  • Repository
  • 8 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

Blowgun

Scrutinizer Code Quality Code Coverage Build Status, (*1)

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., (*2)

Developing blowgun

Start a queue subscriber like this:, (*3)

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

This will create and fetch messages from two SQS queues:, (*4)

  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:, (*5)

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

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

The Versions