Skip to content
Preptima
hardScenarioMidSeniorStaff

Consumer lag on your orders topic climbs every morning and never clears before the next peak. Work through it.

6 min readUpdated 2026-08-15

Answer

Short answer

Lag is the integral of arrival rate minus service rate, so establish which of the two moved and whether the consumer is slow or stalled. Check lag per partition before per group, rule out a rebalance loop, and remember that adding consumers beyond the partition count does nothing.

Kafka lag is a symptom, not the diagnosis. Good Kafka analysis separates slow processing, partition skew, downstream backpressure, rebalance churn, and insufficient parallelism. Weak Kafka answers add consumers before checking whether the topic has enough partitions or whether one hot key owns the lag.

Was this answer helpful?

Likely follow-ups

  • Lag is concentrated in one partition out of twenty-four. What are your options?
  • You need to catch up on four hours of backlog today. What do you do differently from the steady-state fix?
  • One message cannot be processed and never will be. Where does it go, and who finds out?
  • How would this diagnosis differ on SQS rather than Kafka?

Related questions

Masterclass guide

Further reading