Skip to content

Interactive demos

Preview page for the interactive components. Each one runs the real library in the page.

Delays come from the library’s computeDelay, the function retryStrategy uses.

0 ms2.5 s5 s7.5 s10 s123456
Bars: delay before retry 1…6.

Total wait: 12.6 s

retryStrategy({ maxRetryAttempts: 6, backoffType: 'exponential', delay: 200 })
Delay before each retry
RetryDelay
1200 ms
2400 ms
3800 ms
41.6 s
53.2 s
66.4 s

A real circuit breaker with a 3-second break duration. Send failures until it opens, then wait for the probe.

failure rate ≥ 50%after 3 sprobe failsprobe succeedsClosedcalls flowOpencalls rejectedHalf-openone probe

Circuit closed. 0 succeeded, 0 failed, 0 rejected.

Stateclosed
Window failure rate0%
Calls in window0/10
Half-open in–
Succeeded / failed0 / 0
Rejected (open)0

Opens when at least 50% of the last 10 calls failed (and at least 4 calls were recorded). While open, calls fail fast with BrokenCircuitError; after 3 s the next call is let through as a probe.

Without pipeline

With retry + timeout + breaker + fallback

ok ok after retry fallback slow (> 1 s) error

For the full simulator, open the playground.