Stop calling what is already failing
Change the failure threshold, open duration and fault error rate, then run virtual time forward. Every number below is counted by the same deterministic model, so the same settings always give the same result.
Moving dots are a few sampled requests, for orientation only. Queue chips, load and the rejected count come from the engine; the numbers count every request. While the breaker is open its route to the dependency is shown blocked; the dependency is marked degraded during its fault window.
Changing a control restarts the run at 0 s with the same seed, so runs stay comparable.
Starting the simulation engine…
All counters
- Offered—
- Accepted—
- Rejected—
- Failed—
- Timed out—
- In flight—
- Queued—
- p50 latency—
- p95 latency—
- p99 latency—
- Latency samples—
- Fallback served—
- State changes—
- Half-open probes—
Counts are cumulative since 0 s virtual time. Accounting: offered = accepted + rejected + short-circuited.
What this model assumes
- Illustrative model, not a benchmark: the fault window and timings are chosen to show open, half-open and recovery.
- The breaker counts consecutive failures, where an error or a timeout is a failure. One success clears the count.
- A timed-out call is counted once as a timeout. The dependency keeps working on that call, so its load still counts.
- A fallback answer is served by the breaker and is not counted as a success of the dependency.
- No retries are modelled; arrivals are deterministic and periodic.
Model circuit-breaker v1, seed 2027. Simulated by a Rust engine compiled to WebAssembly, running in a Web Worker in your browser; time is virtual, not wall-clock.