go podcast()

013: Go's concurrency to the rescue


Listen Later

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 error
  • My course: Build SaaS apps in Go


Best way to show support for the pod is by sharing it around and buying my course.

...more
View all episodesView all episodes
Download on the App Store

go podcast()By Dominic St-Pierre

  • 3.8
  • 3.8
  • 3.8
  • 3.8
  • 3.8

3.8

6 ratings


More shows like go podcast()

View all
Cup o' Go by Jonathan Hall & Shay Nehmad

Cup o' Go

16 Listeners

Datastar – The hypermedia framework. by Datastar

Datastar – The hypermedia framework.

0 Listeners