httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3.01k stars 321 forks source link

DNS failover handling #638

Closed midnight-wonderer closed 3 years ago

midnight-wonderer commented 3 years ago

Hello there,

I want to add DNS failover support for the client.
This implementation inclined with Nginx's behavior when used as a reverse proxy.

I need help adding the required specs; if someone wants to help, please send a pull request to my branch.

For some context, some services use A records with multiple IP addresses, unless you are large enough to handles failover at the BGP level, this is the only practical way to eliminate a single point of failure.
But the failover technique needs client support, hence the pull request.

tarcieri commented 3 years ago

Thank you!