Explore Library
Flashcard

Backpressure in Node.js Streams

How Node.js streams signal backpressure via write() return values and the drain event.

Question

How does backpressure work internally when piping a fast readable into a slow writable stream?

Click to reveal answer