This is an example application that makes use of circuitry fan-out messaging.
- Clone this repository:
git clone git@github.com:kapost/circuitry-example.git
- Update environment variables:
cp .env.example .env
- Edit
.env
to set your AWS access/secret keys. (Note that you'll need an AWS account with rights to create/manage SQS and SNS.)
- Install gems:
bundle install
-
Run the subscriber. (Note that this is a long-running process that must be exited via
Ctrl+C
.)bundle exec ruby ./subscriber.rb`
-
Run the publisher.
`bundle exec ruby ./publisher.rb`