1. Design a worker pool that processes jobs from a queue with cancellation and graceful shutdown.
Interview promptStrong signal
Uses context, bounded channels, sync primitives, and explains shutdown semantics.
Follow-up probes
- •How do you avoid goroutine leaks?
- •What does the metrics surface look like?
Red flags
- •Spawns unbounded goroutines.
- •No cancellation or shutdown story.