Level 1 · Apprentice0 XP
Timeouts, retries and circuit breakers, so a slow dependency does not become your outage.
Step 1 / 5
ProblemYour service calls a partner API with no timeout. The partner slows to thirty seconds a call. Each of your threads waits on it. Within a minute every thread is stuck and your own healthy endpoints stop answering.
← → step
Before this: Caching in Spring
🛠️ 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.Write a small client for a slow endpoint (simulate it with a controller that sleeps 5 seconds). Add a 1 second read timeout and watch the call fail fast. Add a retry for GET only. Then decide and implement what the caller returns when it still fails.