~/talk

Node.js Under the Hood: Understanding the Runtime in Production

TalkinSpanishat JSConf España 2026 · on Saturday, 2026-03-14· [nodejs]
slides:none on file

Explains how Node.js runtime layers (V8, native C++ bindings, libuv threadpool — default 4 threads — and the OS) cause unexpected latency spikes because the event loop only runs callbacks at specific phases when the main thread is free. Demonstrates with two code examples: a heavy Array.reduce that keeps work in V8 and blocks the event loop, and fs.readFile which offloads work to libuv’s threadpool but delays its callback until the loop schedules it. Recommends measuring P99 latency, CPU, and queueing to make debugging deterministic rather than guesswork.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Understand Node.js internals
  3. 6:41Runtime architecture
  4. 8:29Event loop basics
  5. 13:04Event loop phases
  6. 17:20Performance bottlenecks
  7. 19:07Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.