Rohit Garg
Home Posts Bookshelf Tags About RSS

Concurrency

Goroutine Leaks in Go and How to Prevent Them

Apr 30, 2026

  • Go
  • Concurrency
  • Patterns
  • Goroutines

Learn how goroutine leaks happen in Go services and how to prevent them with context cancellation, buffered channels, and clear goroutine ownership.

Go Counting Semaphore Pattern

Apr 28, 2026

  • Go
  • Concurrency
  • Patterns
  • Channels

Learn the counting semaphore pattern in Go using buffered channels to limit concurrent work, protect services, and keep worker pools predictable.

© Rohit Garg