silverstripe / blowgun
Requires
- php: >=5.6
- aws/aws-sdk-php: ^3.0
- monolog/monolog: ^1.13
- psr/log: ^1.0.0
- symfony/console: ^3.3
- symfony/process: ^3.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2020-02-21 16:27:33 UTC
README
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:
- local-{whoami}-dev-stack
- 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.