Back to problems

Double Circuit Breaker for server calls (lambda returns success/failure)

Object-Oriented Programming · Dropbox · Medium

Problem: Double Circuit Breaker Design and implement a "double circuit breaker" component that manages calls across several backend servers and gracefully handles failures. Setup You have a pool of backend servers (for instance, server A and server B, or a primary and a secondary). A call is represented by a lambda/callback you invoke. This callback simulates a request to a server and reports success or failure. The circuit breaker uses each call's outcome to decide: whether…

Checking your access…