Node.js · Senior · Question 24 of 75
What does highWaterMark control?
- ✓Correct answer: How much data a stream buffers before it signals backpressure (bytes, or objects in object mode)
- 2The priority of a stream in the event loop
- 3The maximum total size of a stream
Explanation
It's a threshold, not a hard limit. Ignoring write() returning false lets the buffer grow without bound.