~/talk

An Actor Model in Go

Talkat Golang UK 2016 · on Thursday, 2016-08-18· [concurrency, go]
slides:none on file

An actor style is implemented as a struct plus a goroutine that pulls work from a chan mailbox and executes closures so functions-as-messages are sent, queued and run single-threaded. Used inside Weave Net for a connection maker and an IP address manager, it runs in production for two years and simplifies code by avoiding fine-grained mutexes. Channels are sized pragmatically (tests at size 1, prod usually 16-sized channel) and the model is simpler but no locks but not deadlock-proof—full queues can still deadlock across goroutines or machines.

AI-written summary · about

  1. 0:00Introduction
  2. 1:37Actor Model
  3. 2:09Actors for Concurrent Systems
  4. 2:56Bryans Background
  5. 4:10Connection Maker
  6. 5:48Properties
  7. 7:16Actor
  8. 8:23Concurrency
  9. 9:08Go Routine
  10. 15:51Example
  11. 20:50Un unbounded channels
  12. 25:31Cons
  13. 30:18Conclusion
~/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.