HomeComputer ScienceNetwork Resilience Simulation

Retry & Circuit Breaker Simulator

Interactive network reliability simulator: watch requests retry with exponential backoff and jitter, and a circuit breaker trip open after repeated failures, cool down, then probe half-open to test recovery — all parameters tunable in real time.

Computer Science2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
mobile-api-networking ↗ Open standalone

Mobile apps talk to flaky networks constantly, so resilient API clients lean on two complementary patterns: exponential backoff with jitter for individual retries, and a circuit breaker that stops calling a failing dependency altogether once it detects sustained trouble. This simulator runs both live — a stream of simulated requests fires against a service whose failure rate you control, each failure schedules a retry whose delay doubles (capped and jittered) with every attempt, and a shared circuit breaker watches the consecutive-failure streak, tripping open to short-circuit calls for a cooldown, then probing half-open to test recovery. Watch the timeline of attempts and the breaker's state machine to see how the two patterns interact under different flakiness levels.

⚙ Under the hood

Simulate exponential backoff retry and circuit breaker for handling flaky network calls.

networkingresiliencecircuit-breaker

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)