A Resilient Web API Client in Ruby

Ruby HTTP client is not sophisticated enough to handle errors gracefully. I came across a well-designed client for a web service at [AppSignal]. (https://blog.appsignal.com/2018/05/16/ensure-retry-and-reraise-exceptions-in-ruby.html) The code for the client is as following: The code has the following logic: Try to establish a connection with the server. The request has a timeout and connection refused exceptions. … More A Resilient Web API Client in Ruby