Interview Hub
Sign in

Q27: What is backpressure in streams?

MidNode.js 29

Answer

When a consumer cannot keep up, internal buffers grow. APIs like write() returning false and 'drain' events let producers pause/resume. Ignoring backpressure can spike memory.

Having a tech or coding interview? Check 29 JavaScript & Node.js interview questions.

EditorJavaScript · local only