Skip to content
Commitwise
Menu

Backpressure

A way for a consumer to tell a producer to slow down, so fast producers don't overwhelm slow consumers.

Definition

In reactive streams, subscribers request a number of items and publishers send no more than requested; the signal can travel all the way to a network socket. Without backpressure, a slow consumer must buffer without bound or drop data. Queues, rate limits and bounded buffers apply the same idea between services.

In practice

A server-sent events endpoint stops reading from Kafka for a client whose connection is too slow to keep up.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.