~/talk

Go Concurrency Techniques for Self-Healing Applications

Talkat GopherCon Singapore 2023 · 2023-11-02..11-03· [concurrency, go]
links:none on file
slides:none on file

Built a liveness probe that compares Kafka’s latest produced offset to each consumer’s committed offset and fails when committed offsets stop advancing, running with the Sarama client on Kubernetes and coordinated by errgroup/WaitGroup. Early design uses channels and mutex-protected maps, later replaced by sync.Map and a consumer getOffsets method to handle rebalances. Resulting system auto-restarts stuck consumers, exposes context cancellation, and reduced PagerDuty pages by 50%. Key pieces: liveness probe comparing Kafka produced vs committed offsets, Sarama client on Kubernetes, sync.Map + errgroup for lifecycle and concurrency.

AI-written summary · about

  1. 0:00Introduction to scaling
  2. 1:08Event-driven architecture
  3. 3:06Kubernetes health checks
  4. 4:44Designing the custom probe
  5. 7:28Go implementation details
  6. 8:30Concurrency with channels
  7. 10:47Synchronization and mutexes
  8. 12:18Context and lifecycle
  9. 14:22Wait groups and error groups
  10. 15:49Addressing rebalances
  11. 18:24Key lessons and conclusion
  12. 20:25Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.