~/talk

Otp In Production: The Nitty-Gritty Details Of Game Servers

Talkat ElixirConf 2014 · 2014-07-25..07-26· [web-performance]
slides:none on file

Production OTP game servers run real-time card tables with four players each, use Cowboy and Ranch for connections and push JSON at the border, and implement a nested finite state machine (Chen/GenFSM style) plus stage callbacks. Rolling deploys happen by flipping the load balancer, starting a table migrator that serializes minimal table state and recreates the table on the new node while a connection proxy forwards raw sockets so reconnecting players continue. PostgreSQL sequence supplies monotonic IDs cached by 50. The system works in production and Bold Poker sells successfully.

AI-written summary · about

  1. 0:00Introduction to game servers
  2. 3:02System architecture
  3. 6:18Game logic implementation
  4. 9:53Event tracing
  5. 12:30Handling disconnections
  6. 14:31Server migration techniques
  7. 18:01Seamless state migration
  8. 20:20Migrating to Elixir
  9. 23:51Lessons learned and Q&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.