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
consumer lag = 10000 - 9800 = 200 messages