Course
Node.js Internals
A practitioner's tour under the Node.js runtime — libuv, event-loop phases, streams, memory behavior, and the debugging discipline that keeps production services legible.
Reviews
Enrolled members can rate this course.
No reviews yet.
Runtime Anatomy and the Event Loop
Understand libuv, V8, event-loop phases, task queues, and the scheduling mistakes that stall real services.
- 01libuv, V8, and the Boundary Between JavaScript and the SystemBuild the correct mental model of Node as JavaScript glued to native asynchronous I/O, not as a magical single-threaded server.24mOpen
- 02Event-Loop Phases, Timers, and I/O Callback OrderingLearn what each event-loop phase actually runs, why timer ordering is conditional, and how to reason about callbacks without cargo-cult diagrams.26mOpen
- 03Microtasks, nextTick, and the Starvation TrapDistinguish promise microtasks from nextTick and macrotasks, and stop recursive scheduling before it monopolizes the event loop.23mOpen
Streams, Buffers, and Memory
Trace how data moves through streams, how buffers and the heap behave, and where leaks and backpressure failures originate.
- 01Buffers, External Memory, and Who Owns the BytesUnderstand Buffer allocation, external memory accounting, string conversion costs, and the ownership mistakes that distort RSS and leak data.25mOpen
- 02Streams and Backpressure Under the HoodTrace readable, writable, transform, object-mode, highWaterMark, corking, and pipeline behavior so flow control becomes a design tool instead of a mystery.27mOpen
- 03Handles, Retention, and Memory-Leak MechanicsConnect object retention, event listeners, closures, sockets, timers, and async resources so leaks become traceable structures instead of folklore.25mOpen
Production Debugging and Operability
Measure event-loop health, capture CPU and heap evidence, and debug production Node without guessing or restarting blindly.
- 01Measuring Event-Loop Lag and Runtime HealthInstrument event-loop delay, active handles, garbage collection pressure, and request latency so runtime symptoms lead to actionable diagnosis.24mOpen
- 02CPU Profiles, Flamegraphs, and Finding the Hot StackCapture CPU evidence with the inspector and clinic-compatible workflows, interpret self versus total time, and avoid optimizing the wrong function.26mOpen
- 03Production Incident Debugging: Dumps, Diagnostics, and Safe RestartsBuild a disciplined incident workflow using diagnostics reports, heap snapshots, signals, logging, and restart decisions that preserve evidence before destroying it.28mOpen