Loading lesson…
Level 1 · Apprentice0 XP
Never wait forever, retry carefully, and do not turn a hiccup into a storm.
Step 1 / 5
ProblemThe recommendation service starts taking 60 seconds. Every product page waits for it. All server threads are soon stuck waiting, and the whole shop stops, even pages that do not need recommendations.
← → step
Before this: Real-time updates: polling, SSE, WebSockets
🛠️ 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.Wrap an HTTP client call with a 300 ms timeout and 3 retries with exponential backoff and full jitter. Add an idempotency key header and make the server store and reuse results by key.