Sidekiq::Sqs
This is a gem that modifies Sidekiq to use Amazon's SQS as a job store. It still requires Redis for stats and such, and worker tracking.
It works currently. There's very few tests, but we've been using it in production for a while. Still, be careful
Installation
Add this line to your application's Gemfile:
gem 'sidekiq-sqs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sidekiq-sqs
Usage
Once the gem is required, (and aws-sdk is configured) simply do:
Sidekiq::Sqs.enable!
That'll turn it all on. Nothing else should have to change.
Caveats
- Scheduling uses SQS message timers. The amount of time you can schedule a worker must be 0 to 900 seconds (15 mins).
- Auto-retrying to insert jobs to SQS on failure (if SQS loses it's mind for a second) doesn't work. It should, but it doesn't.
- ?
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request