~/talk

EventMachine

Talkat MountainWest RubyConf 2010 · 2010-03-11..03-12· [ruby]
links:none on file
slides:none on file

EventMachine is a Ruby reactor that handles 5–10k concurrent connections in one process by doing nonblocking IO and buffering, with a C++ reactor with epoll/kqueue and a JRuby Java reactor alternative; it exposes timers, deferreds, queues, em.defer thread pools and an object protocol that handles marshalling so handlers get Ruby objects not streams. The demo is a 130-line chat server that pipelines Twitter streaming, invokes subprocesses via em.system, and runs without blocking the reactor, though live demo depends on network.

AI-written summary · about

  1. 0:00Start
  2. 4:13Tcp Server
  3. 7:32Reactor Loop
  4. 9:20Reactor Events Are Handled Asynchronously
  5. 11:45The Problem with Events
  6. 16:25Synchronous Loop
  7. 17:58Comparing Contrasting Synchronous Code versus Asynchronous Code
  8. 19:31Threading
  9. 20:22Timers
  10. 20:37Single One-Shot Timers
  11. 21:29Callback
  12. 22:10Iam Deferrable
  13. 27:14Networking
  14. 31:00Buffered Tokenizer
  15. 31:39Object Protocol
  16. 32:56Websocket
  17. 35:36Sync Sinatra
  18. 36:28Chat Server
  19. 37:20Twitter Streaming Api
~/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.