Skip to content
Veltoryx Technologies

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.

Runs in your browser. Nothing is uploaded.

Microservice Traffic & Retry Settings

Downstream Service Outage Rate:65% failing

Resilience4j Circuit Breaker Thresholds

Failure Rate Trip Threshold:50% failure rate

When error rate exceeds 50%, the circuit transitions to OPEN and fast-fails requests.

Inbound Base Traffic1,000 RPSRegular caller request rate
Without Circuit Breaker (Retry Storm)2,300 RPSTraffic amplified 2.3x due to retry loop!
With Circuit BreakerCircuit OPENFast-fails in ~0.1ms; downstream given space to heal.

Resilience4j Circuit State Progression

T+1sCLOSEDNormal operation. All calls pass through to downstream service.
T+2sCLOSEDDownstream failure rate spikes to 65%. Window recording errors.
T+3sOPENFailure rate exceeded threshold (50%). Circuit TRIPPED OPEN. Fast-failing immediately with CallNotPermittedException.
T+4sOPENCircuit OPEN sleep window. Downstream service given breathing room to recover.
T+5sOPENCircuit OPEN sleep window. Downstream service given breathing room to recover.
T+6sHALF_OPENSleep window elapsed. Transitioned to HALF_OPEN. Allowing trial probe requests.
T+7sCLOSEDProbe requests succeeded! Circuit CLOSED and fully operational.
T+8sCLOSEDProbe requests succeeded! Circuit CLOSED and fully operational.

How to use this tool

1
Set inbound RPS and retry count

Specify normal caller request rate and how many retries your service client executes upon failure.

2
Inject downstream failure percentage

Simulate a partial outage (e.g. 70% database timeouts) and configure your failure rate trip threshold.

3
Observe circuit tripping & load shedding

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.

📖 Related Lessons on Veltoryx Learn

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.

🛡 Safe for confidential enterprise payloads