Konubinix' opinionated web of thoughts

Circuit Breaker

Fleeting

circuit breaker, you set limits for calls to individual hosts within a service, such as the number of concurrent connections or how many times calls to this host have failed. Once that limit has been reached the circuit breaker “trips” and stops further connections to that host. Using a circuit breaker pattern enables fast failure rather than clients trying to connect to an overloaded or failing host.

https://istio.io/latest/docs/concepts/traffic-management/

basic idea behind the circuit breaker is very simple. You wrap a protected function call in a circuit breaker object, which monitors for failures. Once the failures reach a certain threshold, the circuit breaker trips, and all further calls to the circuit breaker return with an error, without the protected call being made at all. Usually you’ll also want some kind of monitor alert if the circuit breaker trips

https://martinfowler.com/bliki/CircuitBreaker.html

resetting behavior by trying the protected call again after a suitable interval, and resetting the breaker should it succeed

https://martinfowler.com/bliki/CircuitBreaker.html

useful technique to avoid overloading servers

https://martinfowler.com/bliki/CircuitBreaker.html

avoid waiting on timeouts for the client, and a broken circuit avoids putting load on a struggling server

https://martinfowler.com/bliki/CircuitBreaker.html

Notes pointant ici