Talk Overview
Concurrency in Go is cheap, but goroutines are not free. In high-throughput distributed systems, unmanaged goroutine spawning leads to runaway memory usage, GC pressure, and latent goroutine leaks.
Topics Covered
- Channel ownership patterns: who closes what and when.
- Context propagation, cancellation deadlines, and cascading timeouts.
- Bounded worker pools vs dynamic fan-out workers.
- Diagnosing production leaks using
net/http/pprofand goroutine stack dumps.