Mastering Concurrency in Go: From Patterns to Production
summary
Explains concrete concurrency recipes in Go with code and production uses: a worker pool implemented with goroutines plus waitgroups and a buffered semaphore channel to cap concurrency without idle workers; graceful shutdown driven by context and waitgroup when consuming from Kafka; pipeline stages wired by channels for image processing; fan-out/fan-in that aggregates per-task channels and preserves ordering with a channel-of-channels ordering trick used in Kubernetes; examples show these patterns running in real services and writing results to S3.
AI-written summary · about
chapters (8)
- 0:00Introduction and context
- 1:33Go concurrency foundations
- 2:23Worker pool patterns
- 9:26Practical worker applications
- 11:45Pipeline pattern
- 16:02Fan-out and fan-in
- 19:49Maintaining order with channels
- 23:24Conclusion and wrap-up
related talks
54mComplex Concurrency Patterns with Go
32mConcurrency Patterns in Go
27mProduction Ready Concurrency
26mConcurrency primitives of Golang - how to use and how not to
46mOptimizing Concurrent Applications
16mIn the land of Gophers from age 3
16mIn the Land of Gophers (from Age 3)
18mApplied concurrency in Go
