Skip to content

1debit/network_resiliency_rb

This branch is 3 commits ahead of, 4 commits behind dpep/network_resiliency_rb:main.

Folders and files

NameName
Last commit message
Last commit date
Apr 8, 2024
Mar 13, 2024
Mar 13, 2024
Aug 1, 2021
Aug 1, 2021
Dec 9, 2023
Aug 1, 2021
Mar 13, 2024
Aug 1, 2021
Apr 8, 2024
Aug 1, 2021
Feb 23, 2024
May 23, 2024

Repository files navigation

NetworkResiliency

Gem codecov

Making network requests more resilient to error.

  • less errors, by retrying
  • less time, by setting granular timeouts
require "network_resiliency"

NetworkResiliency.configure do |conf|
  conf.statsd = Datadog::Statsd.new
end

Redis.new.ping

Contributing

Yes please :)

  1. Fork it
  2. Create your feature branch (git checkout -b my-feature)
  3. Ensure the tests pass (bundle exec rspec)
  4. Commit your changes (git commit -am 'awesome new feature')
  5. Push your branch (git push origin my-feature)
  6. Create a Pull Request

Inspired by

https://github.com/lostisland/faraday-retry/blob/main/lib/faraday/retry/middleware.rb

https://github.com/ankane/the-ultimate-guide-to-ruby-timeouts

https://reprep.io/writings/20220326_timeouts_deadline_propagation.html

https://grpc.io/blog/deadlines

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%