~/talk

Evented Ruby vs Node.js

Talkat Aloha RubyConf 2012 · 2012-10-08..10-09· [ruby, nodejs]
links:none on file
slides:none on file

Argues Ruby can get Node-style concurrency without rewriting apps by using EventMachine reactors, per-request fibers (via rack-fiber-pool), nonblocking adapters (Faraday EM-sync) and em.defer for legacy blocking calls. Claims this raises per-process concurrency and lowers memory cost versus many Rails processes but does not reduce single-request latency. Gives a working example: a standalone zip generator Node process runs alongside Rails at GitHub to handle heavy IO and succeeds in practice.

AI-written summary · about

  1. 0:00Intro
  2. 0:44Performance Goals
  3. 1:42Evented...
  4. 2:25Evented Programming
  5. 2:47Reactor Pattern
  6. 4:17Node.js
  7. 4:51Blocking 1/0
  8. 7:00Web Apps
  9. 7:58Rails Concurrency
  10. 8:58Node Concurrency
  11. 11:00Latency
  12. 12:11Evented Ruby
  13. 13:12Ruby Reactors
  14. 13:53Add a Reactor
  15. 14:13Add Events
  16. 15:28Procedural Interface, Evented Execution
  17. 17:37Code Smell?
  18. 18:23Rack::FiberPool
  19. 18:47Recap
  20. 19:05Mixing Paradigms
  21. 19:50Starting points
  22. 20:05Data Stores
  23. 20:26System Calls
  24. 20:51Final Result
  25. 21:03Why Ruby
  26. 21:39Why Node
  27. 22:12Have cake and eat it too
  28. 23:01Example
  29. 23:49Wrapping Up
~/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.