Swifty Circuit Breaking
February 9, 2016
Circuit Breakers are most useful for networking where remote calls can fail or time out at any moment. When configured thresholds are reached, the circuit breaker “trips” and thus prevents putting unnecessary load on the server until the breaker resets itself after a timeout. In addition, my Swift implementation provides convenience features such as monitoring call timeouts and supporting retry logic with exponential backoff.
Filed under: iOS / Objective-C / Swift