Loading lesson…
Level 1 · Apprentice0 XP
Futures, async/await, the Tokio runtime, and running many I/O tasks at once.
Step 1 / 6
ProblemA proxy must hold 10,000 open connections. One thread per connection would use gigabytes of stack and a lot of switching.
← → step
Before this: Fearless concurrency
🛠️ 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 an async program with Tokio and reqwest that fetches 50 URLs with at most 10 in flight (a semaphore or buffer_unordered), each with a 3-second timeout, and reports status codes and failures.