013: Go's concurrency to the rescue episode artwork

EPISODE · Nov 30, 2022 · 14 MIN

013: Go's concurrency to the rescue

from go podcast() · host Dominic St-Pierre

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}Go 1.20 errors.Join / multiple unwrap errorMy course: Build SaaS apps in GoBest way to show support for the pod is by sharing it around and buying my course.

Episode metadata supplied by the publisher feed · Published Nov 30, 2022

Embed this episode

Real-world story about how Go's concurrency save a .NET performance issue I was having where I needed to call a process that takes 5 to 15 seconds to complete 6m times.

Distinct summary based on available episode metadata or transcript content.

Ready to play

013: Go's concurrency to the rescue

0:00 14:54

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of go podcast()?

This episode is 14 minutes long.

When was this go podcast() episode published?

This episode was published on November 30, 2022.

Can I download this go podcast() episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!