Go Concurrency Series: Concurrency Patterns

Let’s continue being a little more hands-on in our Go Concurrency Series! In this post, we’ll look into the implementation side and cover the common concurrency patterns that can be utilised in Golang.

Concurrency in Go is based on the ‘CSP’ (Communicating Sequential Processes) model, which emphasizes communication between independent processes (goroutines) by sending events(data) through channels.

So, keeping that in mind, let’s see some common concurrency patterns we can use in Go.

Worker Pool

--

--

Pratik Pandey - https://pratikpandey.substack.com

Senior Engineer with experience in designing and architecting large scale distributed systems.