~/talk

Poorman's gen_server

TalkinSpanishat Mexico City Erlang Factory Lite 2015 · 2015-10-22..10-23· [ruby]
links:none on file
slides:none on file

A talk traces evolving a hand-rolled Erlang TCP server from a simple recursive-loop state through records and maps, adding helper message APIs and random refs for request/response matching and using monitors and try/catch for robustness. The implementation is pushed to production but proves brittle and untested, leading to a refactor into an OTP-style gen_server module with proper file-descriptor cleanup and supervision trees, which exposes gaps in tooling, monitoring and testing that motivate adopting OTP.

AI-written summary · about

  1. 0:00Start gen_server
  2. 1:13First TCP server
  3. 4:07State in processes
  4. 6:39Process communication
  5. 9:28Process liveness
  6. 12:43Fetching server values
  7. 14:09Out-of-order messages
  8. 17:21Random ID solution
  9. 19:50Unexpected messages
  10. 20:32Proper termination
  11. 23:03Try-catch usage
  12. 24:27Reducing repetition
  13. 25:53Supervision trees
  14. 28:43Logic separation
  15. 30:51OTP benefits
  16. 31:35Q&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.