Interactive demos
Preview page for the interactive components. Each one runs the real library in the page.
Backoff and jitter
Section titled “Backoff and jitter”Delays come from the library’s computeDelay, the function retryStrategy uses.
Total wait: 12.6 s
retryStrategy({ maxRetryAttempts: 6, backoffType: 'exponential', delay: 200 })| Retry | Delay |
|---|---|
| 1 | 200 ms |
| 2 | 400 ms |
| 3 | 800 ms |
| 4 | 1.6 s |
| 5 | 3.2 s |
| 6 | 6.4 s |
Circuit breaker
Section titled “Circuit breaker”A real circuit breaker with a 3-second break duration. Send failures until it opens, then wait for the 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.
Landing-page demo
Section titled “Landing-page demo”Without pipeline
With retry + timeout + breaker + fallback
ok ok after retry fallback slow (> 1 s) error
For the full simulator, open the playground.