~/talk

You Don’t Node.js

Talkat Dutch PHP Conference 2017 · 2017-06-29..07-01· [nodejs]
links:none on file
slides:none on file

Explains how Node.js runs one call stack with an external API thread pool and why long CPU tasks or synchronous fs calls block all requests, causing UI hangs or server backlog; demonstrates using node-blocked to detect stalls, using async/await or Promises (Promise.all for parallelism) instead of nested callbacks, creating a connection pool for databases, and remembering there are no default timeouts on network sockets so timeouts and process.on('unhandledRejection'|'uncaughtException') handlers must be wired.

AI-written summary · about

  1. 0:00Start
  2. 9:12General Blocking Rules
  3. 10:44Mitigation
  4. 18:04EVERYTHING IS ASYNC
  5. 24:19CALLBACK STYLE
  6. 35:29ADDING TIMEOUTS
~/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.