~/talk

Ruby & Erlang: at Scale with Style

Talkat Erlang User Conference 2012 · 2012-05-28..06-02· [ruby-on-rails]
links:none on file
slides:none on file

Wooga runs social games at ~50M monthly users and ~14 billion API calls a month and moves from stateless web servers to stateful Erlang session-per-user processes that keep game state in memory, serialize to S3 on timeout, and use the actor mailbox for strong single-writer concurrency. A hybrid ZeroMQ/Mongrel2 Ruby workers prototype sends state plus operation to Ruby but hits a ~10x throughput drop and bandwidth limits at ~300 MB/s, ports improve latency but cost operability, so the team chooses pure Erlang for scalability and reliability.

AI-written summary · about

  1. 0:00Intro
  2. 1:19Typical game architecture
  3. 3:05The scale is interesting
  4. 4:38Wooga's approach to development
  5. 6:34Existing backends - Technology landscape
  6. 7:44Most games use stateless application servers
  7. 8:48And then there's sharding
  8. 9:13Find the flaw
  9. 9:34Strong session pattern
  10. 10:52Stateful game server
  11. 12:10The DB is no longer the bottleneck
  12. 12:36Magic Land uses Erlang
  13. 14:13Erlang & Ruby
  14. 16:04Bringing two worlds together
  15. 17:24Do you know Mongrel2?
  16. 19:19Connecting the dots
  17. 21:10Example controller in Ruby
  18. 22:33Example model in Ruby
  19. 23:49Game state
  20. 24:43Looking back at the game action
  21. 28:02Performance impact for large payloads
  22. 29:41NOT CPU bound
  23. 30:31This has happened before
  24. 34:49Example model in Erlang
  25. 35:36CAN THERE BE HAPPINESS
  26. 41:15Example controller in Erlang
~/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.