Junior
From PDF
Node.js
Node.js
What is backpressure in Streams?
Backpressure happens when data is produced faster than it can be consumed downstream.
In Node.js streams, it's a built-in mechanism to:
- Pause the readable stream when the writable stream is overwhelmed.
- Prevent memory overload and crashes.
This flow control allows producers and consumers to work in sync.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png