Messaging
Consumer Lag
The difference between a partition's latest offset and the consumer group's committed offset.
Why interviewers ask about it
Track per partition and in time units, not messages. A single lagging partition means a hot key or stuck consumer, and it is invisible in an aggregate.
Related terms
This term is part of the free System Design interview preparation module - browse the full glossary for every definition.