Circuit Breaker & Retry Storm Simulator
Simulate Resilience4j circuit breaker state transitions (CLOSED, OPEN, HALF-OPEN) and demonstrate how retry storms amplify downstream traffic during microservice outages.
Microservice Traffic & Retry Settings
Resilience4j Circuit Breaker Thresholds
When error rate exceeds 50%, the circuit transitions to OPEN and fast-fails requests.
Resilience4j Circuit State Progression
How to use this tool
Specify normal caller request rate and how many retries your service client executes upon failure.
Simulate a partial outage (e.g. 70% database timeouts) and configure your failure rate trip threshold.
Watch the state machine transition from CLOSED to OPEN, fast-failing traffic to give downstream systems time to recover.
Frequently Asked Questions
What is a retry storm (thundering herd)?
When a downstream service slows down or fails, upstream clients retrying 2 or 3 times multiply total inbound traffic (e.g. 1,000 RPS becomes 2,500 RPS), crushing the struggling database and guaranteeing a total cascading outage.
What are the three states of a Circuit Breaker?
CLOSED (healthy, calls pass through), OPEN (unhealthy, calls fast-fail immediately without hitting downstream), and HALF-OPEN (testing the waters with a limited trial of probe calls after a sleep window).
Why is fast-failing better than waiting for a timeout?
Waiting for a 5-second timeout holds onto tomcat threads, database connections, and memory buffers. Fast-failing in 0.1ms returns an immediate fallback error to the user while preserving thread pool capacity.
How does exponential backoff with jitter help retries?
Exponential backoff doubles the wait duration between retries (100ms, 200ms, 400ms). Adding random jitter spreads requests across time, preventing synchronized thundering herd spikes.
Deepen your architecture knowledge with practical, production-tested guides:
Client-Side Privacy Guarantee
This tool never transmits your payloads to any server. Open DevTools (F12) → Network tab to verify that zero HTTP requests are sent while using this page.