~/talk

Production Ready Concurrency

Talkat GopherCon Europe 2022 · 2022-07-28..07-31· [concurrency, go]
slides:none on file

Practical rules and concrete tools: run tests with -race detector, avoid globals, always wait for goroutines and propagate cancellations via context; common bugs include background goroutines hitting a closed DB, WaitGroup Add/Done races, deadlocks from skipped items, mutexes blocking cancelled requests, and leaked channels. Prefer errgroup, sync.Once or small, well-tested custom primitives over ad hoc worker pools. Examples shown: a context-aware sleep, a test wrapper that prevents goroutine leaks, a channel-based semaphore limiter, and a background task manager wired to a root context.

AI-written summary · about

  1. 0:00Concurrency best practices
  2. 10:48Debugging common mistakes
  3. 17:09Choosing concurrency tools
  4. 19:35Building custom primitives
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.