Which distributed design pattern prevents repeated calls to a failing dependency while allowing periodic checks for recovery?
Show the answer
Correct answerD. Circuit breaker
AWhy not this: Queue-based load leveling buffers work to smooth demand rather than detecting dependency failures and blocking calls.
BWhy not this: Load balancing distributes requests across targets rather than temporarily blocking calls to a failing dependency.
CWhy not this: Publish-subscribe distributes events to subscribers rather than controlling calls to an unhealthy dependency.
DWhy this is right: A circuit breaker blocks calls after failures and permits trial requests to determine whether the dependency has recovered.
A circuit breaker stops calls after repeated failures and later permits trial requests to detect recovery. Queue-based load leveling buffers work during demand spikes but does not itself stop calls to an unhealthy dependency.