В10/ 15
Т06Streams and backpressure
Explain backpressure in a pipeline of streams. What does highWaterMark control?
Ваш ответ
highWaterMark is the maximum size of a chunk. Backpressure is when the stream is slow.
Цепь разомкнута. Вернитесь к теме.
`highWaterMark` is a buffer threshold, not a chunk size. Backpressure is the signal, `write()` returning `false`, that tells the source to pause until `drain`. Read the second Lesson in Streams and backpressure again.