All Questions
Api Design medium

Service A calls Service B, which is failing. Without protection, A keeps sending requests, cascading the failure. What pattern prevents this?

  1. A Implement a Circuit Breaker that opens after a failure threshold, immediately rejecting subsequent calls until a timeout period allows for a health test.
  2. B Configure an aggressive retry policy that continues to send requests until Service B responds, ensuring eventual completion of all initiated tasks.
  3. C Increase the network timeout duration to several minutes to give Service B sufficient time to clear its internal processing queues during high load.
  4. D Deploy a local cache in Service A that stores the last successful response from Service B and serves it whenever a network failure is detected.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions