Loading lesson…
Level 1 · Apprentice0 XP
Non-blocking web apps with Mono and Flux, and when virtual threads are the simpler choice.
Step 1 / 6
ProblemA gateway calls three slow services per request. With 200 threads, each waiting 2 seconds, it handles 100 requests per second at most. Under a spike, requests queue and time out.
← → step
Before this: Calling other services safely
🛠️ 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.Build a WebFlux endpoint that calls three slow fake services concurrently with Mono.zip, adds a 2-second timeout and a fallback, and compare its latency to calling them one after another.