Prasad Ekke
Back to blog

Reading guide

Go in production: concurrency, cancellation, and the bugs that pass review.

Essays on writing Go services that hold up under load, cancel cleanly, and shut down without dropping requests. Most start from a bug that looked correct in code review. Grouped by topic, in a sensible reading order.

Concurrency and goroutines

Worker pools, bounding concurrency, and making sure goroutines actually stop.

errgroup Cancels Less Than You Think

errgroup.WithContext is a tiny API that keeps producing the same bugs. A look at its documented cancellation semantics, which are easy to assume rather than read.

Read on Medium

Cancellation and shutdown

Deadlines, cancellation, and deploys that don't spike 502s.

Running Go in production

Finding where the time goes, and running well inside containers.

Writing clearer Go

Small habits that make Go code harder to misuse.