~/talk

Real-Time Rails

Talkat Burlington Ruby Conference 2013 · 2013-08-03..08-04· [ruby, web-platform]
slides:none on file

Claim: Rails 4.0 can serve real‑time apps without an external Node process by using Rails 4.0 Live Streaming API plus rack hijack. Implementation uses Puma (threaded server), websocket‑ruby and TubeSock, Redis pub/sub or Postgres NOTIFY/LISTEN for broadcast, and mutex/queue patterns to avoid race conditions. Demonstrated chat and drawing apps run in one Rails app and handle roughly 30–40 concurrent clients before a memory leak appears. Covers SSE versus full WebSockets and when long polling suffices.

AI-written summary · about

  1. 0:00Start
  2. 2:29REAL-TIME RAILS
  3. 8:38TCP SOCKETS
  4. 9:39CONCURRENCY
  5. 10:08WEB SERVERS
  6. 12:03THREADS-101
  7. 12:14MORE COMPLEX
  8. 15:17QUEUES
  9. 16:08PUB/SUB
  10. 19:09SERVER SENT EVENTS
  11. 23:03WEBSOCKETS
  12. 27:44A WILD PATTERN APPEARS!
  13. 29:22CHALLENGES
~/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.