~/talk

A Channel Compendium

Talkat GopherCon 2014 · 2014-04-24..04-26· [go]
slides:none on file

Go channels power concrete patterns: close a channel to broadcast start/stop and use closed buffered channels as an end‑of‑stream marker; prefer unbuffered channels unless latency needs buffering; use nil channels to disable select cases; combine select and time.After for timeouts and heartbeats. Examples include spinning up hundreds or tens of thousands of goroutines, a simple memory recycler using a buffered idle channel, and a CloudFlare‑style load balancer with worker getters, per‑worker queues and depth 10 that limits concurrent fetches.

AI-written summary · about

  1. 0:00Introduction
  2. 1:16Origins of CSP and Hoare
  3. 2:39Go versus original CSP
  4. 3:43Channel operations
  5. 5:10Channel closure
  6. 6:14Select statements
  7. 7:42Bidirectional channels
  8. 8:45Closed/nil channels
  9. 10:09Hiding state
  10. 11:34Memory recycling
  11. 13:47Nil channels blocking
  12. 15:36Timers and timeouts
  13. 17:42Go channels advantages
  14. 18:24Network multiplexing
  15. 19:53Request-response patterns
  16. 20:56Load balancer in Go
  17. 23:26Production with channels
  18. 24:00Q&A
~/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.