Skip to content
All concepts

Concept

Consumer lag

Consumer lag is how far a consumer is behind the newest message in a log or queue. A small, steady lag is normal, while a lag that keeps growing means messages arrive faster than they are processed. Measured as time, it tells you how late the work is for the people waiting on it.

Watch a burst arrive: the consumer overloads its database and the lag keeps growing after the burst ends. 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.