Object-Oriented Programming · Databricks · Medium
Build a Circuit Breaker Problem Overview Design and implement a Circuit Breaker for distributed systems. The breaker should stop forwarding calls to a repeatedly failing service, allowing that service time to recover instead of permitting failures to spread through the system. Your design must: Support concurrent callers safely. Represent the three states CLOSED, OPEN, and HALF_OPEN. Move between states automatically according to failures and elapsed time. Work with…
Checking your access…