Grab

Designing Resilient Systems: Circuit Breakers or Retries? (Part 1)

Dec 21, 2018Corey Scott
Designing Resilient Systems: Circuit Breakers or Retries? (Part 1)
SummaryAI, from the source post

This post introduces and explains the concept of circuit breakers as a service reliability mechanism. It details their analogy to electrical circuit breakers, how they work by blocking requests to prevent overwhelming upstream services, and their benefits such as enabling fallback strategies (e.g., using cached or estimated data) and failing fast to conserve resources. The post also discusses error tracking (focusing on network/infrastructure errors over user errors), circuit recovery via a 'sleep window', and the 'bulwark' feature for limiting concurrent requests. It outlines key Hystrix-Go circuit breaker settings: Timeout, Max Concurrent Requests, Request Volume Threshold, Sleep Window, and Error Percent Threshold.

More from the API Rate Limiting trail