~/talk

Extending OTP with custom behaviours

Talkat Berlin Erlang Factory Lite 2016 · on Tuesday, 2016-12-13· [web-performance]
slides:none on file

Shows exactly how how gen_server is implemented and what the OTP “special process” contract actually requires, walks through concrete callbacks and startup/start_link mechanics, and inspects libraries that reuse the pattern: DBConnection pool checkout semantics, connection reconnect/backoff logic, adapter callbacks for prepare/execute/transactions. Demonstrates building a custom behaviour, highlights real tradeoffs (macros vs callback modules, compilation and debugging costs), and points out practical optimizations like Phoenix Channel handle_out optimization and when native cursors are used.

AI-written summary · about

  1. 0:00Start
  2. 1:09The Plan
  3. 2:41Two use cases for behaviours
  4. 4:49OTP Special processes
  5. 5:52Special process implementation
  6. 16:15ranch_transport
  7. 17:13ranch protocol
~/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.