~/talk

pg2 and You: Getting Distributed with Elixir

Talkat ElixirConf 2016 · 2016-09-01..09-02· [elixir-and-erlang, distributed-systems]
links:none on file
slides:none on file

pg2 implements distributed process groups used by Phoenix PubSub; the talk shows a faithful Elixir translation called re_pg2, notes the original is 333 lines of Erlang, and demonstrates it actually works with tests across nodes. pg2 uses a gen_server plus ETS-backed membership, node and process monitors, and coordinates writes with global.trans locks and gen_server multicalls, so reads are cheap but modifications incur cluster round trips. pg2 behaves as an AP eventually consistent distributed database and suits one-process-per-node patterns (not thousands).

AI-written summary · about

  1. 0:00Start
  2. 0:06Platinum
  3. 4:22What does pg2 let us do?
  4. 5:36Our Phoenix Chat App
  5. 6:34Our Distributed Phoenix Chat App
  6. 8:10Phoenix PubSub (simplified)
  7. 11:18pg2 example, cont.
  8. 14:55RePG2 Translation Principles
  9. 15:53RePG2 vs. pg2
  10. 17:52pg2's OTP Toolbox
  11. 21:39Node and Process Monitoring
  12. 22:58pg2 uses global locks
  13. 23:49pg2 is a distributed database
~/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.