A consumer is lagging when it’s unable to read from a partition as fast as messages are produced to it. Lag is expressed as the number of offsets that are behind the head of the partition.
The time required to recover from lag depends on how quickly the consumer is able to consume messages per second: