Loading lesson…
Level 1 · Apprentice0 XP
Stop calling what is broken, and keep failures in their own compartment.
Step 1 / 5
ProblemThe payment provider is down. Every request still tries it three times with timeouts. Threads pile up, and the provider, trying to recover, is flooded by your retries.
← → step
Before this: Timeouts, retries and backoff
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Use Resilience4j (or opossum in Node) to add a circuit breaker and a bulkhead around a flaky call, with a fallback. Simulate the dependency failing and watch the breaker open and half-open.