
012: Concurrency isn't Go main selling point
11/16/22 • 15 min
Let's talk about Go's concurrency. It's a powerful tool to have at your disposal but a hard one to master and use correctly.
- The tweet that inspired this episode, I thought it was a recent one though...
- Reach out on Twitter
- Build SaaS apps in Go
If you want to support the pod the best way is to purchase my course (thanks).
Let's talk about Go's concurrency. It's a powerful tool to have at your disposal but a hard one to master and use correctly.
- The tweet that inspired this episode, I thought it was a recent one though...
- Reach out on Twitter
- Build SaaS apps in Go
If you want to support the pod the best way is to purchase my course (thanks).
Previous Episode

011: Options where to deploy your Go servers
At beginning I was deploying my Go servers to a DigitalOcean droplet. But for the last 3 years I'm enjoying Render, which listen to my git push and automatically deploy app for me in a blue-green deployment.
If you enjoy my podcast have a look at the following:
Build SaaS apps in Go, my course on building web application in Go
- StaticBackend, an open-source Go backend server API
- @dominicstpierre on Twitter
Next Episode

013: Go's concurrency to the rescue
Go's worker queue pattern:
type WorderPool struct {
queue chan int
}
func (wp *WorkerPool) start() {
for i := 0; i < 500; i++ {
go funcIO {
for id := range wp.queue {
doSomething(id)
}
}()
}
}
func (wp *WorkerPool) add(id int) {
wp.queue <- id
}
Best way to show support for the pod is by sharing it around and buying my course.
If you like this episode you’ll love

CodeWinds - Leading edge web developer news and training | javascript / React.js / Node.js / HTML5 / web development - Jeff Barczewski

The Torch: The Great Courses Podcast

The Edtech Podcast

Tales of a Red Clay Rambler: A pottery and ceramic art podcast

Find Your Voice: How to Write When You're Not a Writer
Episode Comments
Generate a badge
Get a badge for your website that links back to this episode
<a href="https://goodpods.com/podcasts/go-podcast-481108/012-concurrency-isnt-go-main-selling-point-64380015"> <img src="https://storage.googleapis.com/goodpods-images-bucket/badges/generic-badge-1.svg" alt="listen to 012: concurrency isn't go main selling point on goodpods" style="width: 225px" /> </a>
Copy