~/talk

Multi-tiered Node.js architectures

Talkat JSConf US 2011 · 2011-05-02..05-03· [nodejs]
slides:none on file

Claim: reduce client response time by shrinking the critical path and moving non-user‑facing work off the event loop. Uses cluster to prefork ~20 workers and pass the Port 80 socket at the kernel level, uses file descriptors / Unix sockets for fast IPC, and pushes logging to a separate process writing to redis or files so process.stderr never blocks. Notes typical tradeoffs: added server CPU (1ms → ~15ms per request) and ability to glue tens of thousands of clients to one machine.

AI-written summary · about

  1. 0:00Start
  2. 3:24Pre-allocate resources to the client for the entire duration
  3. 4:28When you run out of memory the server gets overwhelmed
  4. 5:05Don't pre-allocate memory
  5. 15:47Use file descriptor sharing to do on machine multicast
~/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.