https://github.com/phstc/shoryuken-putsreq
https://github.com/phstc/shoryuken-putsreq
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phstc/shoryuken-putsreq
- Owner: phstc
- Created: 2015-03-13T12:09:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T02:13:02.000Z (over 9 years ago)
- Last Synced: 2025-01-27T08:45:21.687Z (over 1 year ago)
- Language: Ruby
- Homepage: http://www.pablocantero.com/blog/2015/03/14/sidekiq-redis-vs-shoryuken-aws-sqs/
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
It's a sample app for http://www.pablocantero.com/blog/2015/03/14/sidekiq-redis-vs-shoryuken-aws-sqs/
## Installation instructions
```sh
git clone git@github.com:phstc/shoryuken-putsreq.git
cd shoryuken-putsreq
```
Assuming you have [heroku toolbelt](https://toolbelt.heroku.com/) installed:
```sh
heroku create
git push heroku master
```
Create an [AWS account](https://portal.aws.amazon.com/gp/aws/developer/registration/index.html) if you don't have one, and copy your [Access Key ID and Secret Access Key](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html):
```sh
heroku config:set AWS_ACCESS_KEY_ID=
heroku config:set AWS_DEFAULT_REGION=us-east-1
heroku config:set AWS_SECRET_ACCESS_KEY=
```
Create your test queue:
```sh
heroku run bundle exec rake create_queue
```
Open the [Shoryuken Bucket on PutsReq](http://putsreq.com/7WzifsM2tgkiy4Xpaj26/inspect), click on Fork and copy "Your PutsReq URL" then:
```sh
heroku config:set BUCKET_URL=http://putsreq.com/
```
## Running tests
```sh
heroku ps:scale worker=0
heroku run bundle exec rake
heroku ps:scale worker=1
```
All done! Open your bucket on PutsReq and check the results!