Master The Node.js Internals
English | 2026 | ISBN: NA | 644 Pages | PDF, EPUB | 87 MB
NodeBook explains what happens inside the runtime when your application handles I/O, schedules work, allocates memory, and serves traffic.
Libuv & Event Loop Internals
Understand poll/check/idle phases, threadpool queueing, and platform differences across epoll, kqueue, and IOCP.
02
V8 Compilation Pipeline
Debug deoptimizations, hidden class transitions, and polymorphic inline cache misses with practical examples.
03
Zero-Copy Stream Architecture
Implement binary protocols with backpressure-aware transforms, scatter/gather I/O, and external memory management.
04
Native Addon Development
Build thread-safe N-API modules, move work through uv_queue_work, and handle memory across JavaScript and C++ boundaries.
05
Production Observability
Propagate trace context with AsyncLocalStorage, control metrics cardinality, and analyze latency with flamegraphs.
06
Production Memory Management
Tune generational GC flags, track retainers in heap snapshots, handle external memory pressure and OOM mitigation.
Who this
is for
Application developer
Common gaps
Uses frameworks well, but has limited runtime visibility
Finds memory leaks late, often after production symptoms
Handles large payloads without always measuring allocation cost
Needs clearer tools for profiling, backpressure, and shutdown behavior
Runtime-focused engineer
Profiles V8 heap snapshots and allocation paths
Implements backpressure with streams
Moves CPU-bound work to Worker Threads when needed
Operates Node.js services with clear deployment and scaling tradeoffs
Quick check before we show the links
Helps us keep automated scrapers from hammering the filehosts.
