Excon middleware to exponentially backoff calling AWS APIs when throttled or experiencing errors.
Add this line to your application's Gemfile:
gem 'excon-middleware-aws-exponential_backoff'
And then execute:
$ bundle
Or install it yourself as:
$ gem install excon-middleware-aws-exponential_backoff
This gem is intended to be used with fog and excon when communicating with AWS APIs.
require "fog"
require "excon/middleware/aws/exponential_backoff/include"
10.times do
p Fog::DNS::AWS.new(aws_access_key_id: 'key', aws_secret_access_key: 'secret').list_hosted_zones
end
- Fork it ( https://github.com/mikehale/excon-middleware-aws-exponential_backoff/fork )
- 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 a new Pull Request