CHAPTER 03

Streams

Every subchapter in this chapter, free to read online. Work through them in order, or jump straight to the runtime detail you need.

03
chapter
6
subchapters
Free
online
01
Subchapter

Stream Foundations

How Node.js moves chunked data through stream queues, consumption modes, and backpressure without treating every input as one value.

02
Subchapter

Readable Streams

How Node.js Readable streams buffer data, switch between flowing and paused mode, apply highWaterMark, and signal backpressure.

03
Subchapter

Writable Streams

How Writable streams accept chunks, buffer writes, use highWaterMark, return false from write, and emit drain for backpressure.

04
Subchapter

Transform Streams

How Transform and Duplex streams work in Node.js, how _transform and _flush emit output, and how backpressure crosses both sides.

05
Subchapter

Stream Pipeline

How pipe, stream.pipeline, finished, async pipeline stages, AbortSignal, side outputs, and partial-output cleanup work in current Node.js stream pipelines.

06
Subchapter

Zero-Copy Streams

How Buffer ownership, fs.copyFile, writev, _writev, cork, and copy-path measurement shape hot Node.js stream paths.

Other chapters

9 more