Consumer lag

Consumer lag is the gap between the newest offset available in a Kafka partition and the offset committed by its consumer. A growing gap means messages are accumulating faster than the consumer group is processing them, which can increase notification delivery delays. Monitoring lag helps identify insufficient consumer capacity or slow downstream processing.

Minimal example

text
consumer lag = 10000 - 9800 = 200 messages

Learn this concept

Lesson 3.20 · Capacity estimation

Used in exercises

Exercise 6.4 · API and worker metrics