backpressure

A slow consumer signalling a fast producer to pause, so data does not pile up in memory faster than it can be handled.

In more detail

Without it the unprocessed data grows until the process slows down or runs out of memory. Most streaming and messaging systems provide some form of it.

Example

In Node.js, write() returning false and the drain event are the backpressure signals; pipe() and pipeline() handle them for you.

Related terms

Taught in

References