Skip to content
All concepts

Concept

Backpressure

Backpressure is a slow receiver telling a fast sender to slow down, instead of silently accepting more than it can handle. The signal can be a full queue, a refused request or simply not reading more. Without it, the excess piles up somewhere in the middle as memory, lag or timeouts.

Watch the consumer cap its work in flight: the backlog waits in the log and the database stays fast. A live step from the lesson Consumer lag & backpressure (Kafka / streaming). Timings and counts are illustrative.

Where you'll see it

Sources: AWS Builders' Library: Avoiding insurmountable queue backlogs ↗ · Slack: Scaling Slack's job queue ↗ · Apache Kafka documentation: consumers ↗ · Report a problem

The definition is in our own words; the sources are those of the lesson Consumer lag & backpressure.