Go Scatter Gather Pattern

Guy J Grigsby
Oct 6, 2020 · 1 min read

One of the strengths of Go is it’s native support for concurrency. There are a lot of posts about concurrency in Go, but I was writing this up as a simple example for a coworker and decided to publish it.

It takes a little getting used to if you don’t use concurrent programming a lot, but once you get beyond a couple hurdles, it’s a rockin’ good time. In addition, you can eliminate a whole class of bugs when you force all communication through channels. Then again, you open up another kind of bug. Be careful though, it’s easy to get carried away with channels and then you can end up…