CLOSED
In flight Success Failed attempt Blocked (breaker open)

Retry & Circuit Breaker Simulator

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.