DevPath

Fan out with a bounded worker pool

Mid · practical lab · 35 min · runtime go

Brief

Fan out N HTTP requests with at most K in flight, return the first error, and cancel the remaining work. Explain why an unbounded goroutine-per-item design is unsafe.

3 progressive hints are available in the editor.

Public checks

  • caps concurrency — expected: uses a semaphore, worker pool or errgroup limit