~/talk

In The Loop

Talkat LoneStarRuby Conf 2011 · 2011-08-11..08-13· [web-performance, web-platform]
speakerdeck:methodmissing
slides:none on file

A practical postmortem of a Ruby trading platform that actually uses the reactor pattern: shows code-level system call costs, file-descriptor behavior and how EventMachine + epoll/kqueue lets one process handle tens of thousands of connections; demonstrates deferral to a thread pool (default ~20) to avoid blocking on a 3s MySQL query or a 20s DNS resolve; cites libaio as the async file IO engine behind nodejs; reports GC pauses of ~50–130ms and a benchmark where eventmachine with pipelining outscores nginx for HTTP throughput.

AI-written summary · about

  1. 0:00Start
  2. 2:42Example app
  3. 3:07FIX message
  4. 3:17The kernel
  5. 3:28User mode
  6. 4:02Definition
  7. 5:26open syscall
  8. 6:22Blocked buffer state
  9. 6:40Nonblocking I/O
  10. 8:58Reactor Pattern
  11. 9:31The Reactor Loop
  12. 9:56Registered descriptors
  13. 10:11Multiplexed I/O
  14. 12:03Event driven 1/0
  15. 12:13Event handlers/ callbacks
  16. 14:04Coupling Layers
  17. 14:26Dispatch Handler
  18. 15:28Application Handlers
  19. 16:53Testing
  20. 17:33Confusing sync and async
  21. 18:03Defer work to a thread pool
  22. 18:26Schedule on the reactor thread
  23. 19:23Tight loops
  24. 19:41Prefer a tick loop
  25. 20:07Slow Protocol parsers
  26. 20:41Name resolution and connects
  27. 21:21Async resolver
  28. 22:09Blocking 1/0
  29. 22:48Ruby wrapper for libeio
  30. 23:28All libs have to be evented
  31. 24:22Memory
  32. 25:34Buffer sizes
  33. 40:16Wildfire Interactive, Inc. is hiring
~/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.