A downstream tax API has been failing for 15 minutes
A medium Pipeline Design interview practice problem on DataDriven. Write and execute real pipeline design code with instant grading.
- Domain
- Pipeline Design
- Difficulty
- medium
Problem
A downstream tax API has been failing for 15 minutes. Every worker keeps issuing requests; each waits the full 30-second timeout before failing; the pipeline burns compute on a service that cannot serve. The section's pattern is the circuit breaker: a wrapper around the downstream call that tracks failure rate and, when threshold is crossed, refuses to call for a cool-down. Trial requests after the cool-down decide whether to close again or stay open. Open the breaker by adding one between the worker and the tax API whose name states the three states and their transition parameters.
Practice This Problem
Solve this Pipeline Design problem with real code execution. DataDriven runs your solution and grades it automatically.