~/talk

Real-Time Rails

Talkat RailsConf 2013 · 2013-04-29..05-02· [ruby-on-rails, web-platform]
slides:none on file

Rails 4 exposes ActionController::Live and Rack.hijack so apps can hold raw TCP sockets and stream; Puma plus Ruby threads gives true concurrency. Demonstrations use WebSocket frames, server‑sent events, and the TubeSock gem to simplify code, powering a chat and drawing app that works but leaks memory and crashes under many clients. Deployment warnings: Heroku doesn’t support persistent websockets and nginx defaults kill idle sockets with proxy_read_timeout = 60s (adjustable up to 24 days). Use Postgres NOTIFY/LISTEN or Redis for pub/sub.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33RailsConf
  3. 0:55History of Popular Software
  4. 1:12IBM
  5. 1:35Java
  6. 2:05Ruby
  7. 2:20Node
  8. 2:41The Point
  9. 3:22The Metrics
  10. 4:22The Problem
  11. 4:57A Primer
  12. 5:30TCP Sockets
  13. 6:17Concurrency
  14. 6:39Puma
  15. 8:07Race Conditions
  16. 9:51Queues
  17. 11:52PubSub
  18. 13:03Long Pulling
  19. 13:39Action Controller Life
  20. 14:33ActionControllerLive
  21. 15:00Server Sent Events
  22. 16:27Demo
  23. 16:54Rack Hijack
  24. 17:57Rawhide Rock
  25. 18:52WebSocket
  26. 21:24Chat Demo
  27. 21:37Chat Server
  28. 22:44Source Code
  29. 23:25Patterns
  30. 23:58TubeSock
  31. 24:57WebSocket Challenges
  32. 27:24Thank you
~/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.