Kafka, RabbitMQ & Queues
Kafka lag metrics
Consumer lag is the gap between the newest message and the group's committed position on each partition, and it is the first number to read when delivery slows down.
What you will be able to do
- Explain how consumer lag is calculated from log end offset and committed offset.
- Decide which lag trend and partition view to check before adding consumers.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kafka, RabbitMQ & Queues
- ISR and high watermarkAdvanced · 4 min
The in-sync replica set holds the replicas that are caught up with the leader. The high watermark is the offset every in-sync replica has, and consumers read only up to…
- Min in sync replicasAdvanced · 4 min
The min.insync.replicas setting sets how many in-sync replicas a write with acks=all must reach. Paired with the replication factor, it decides whether one broker…
- Dead letter queuesAdvanced · 4 min
A dead letter exchange catches messages that are rejected, expired, overflowed or redelivered too often, so failed work is kept for inspection instead of being lost.
- RabbitMQ exchangesAdvanced · 4 min
In RabbitMQ, publishers send to an exchange, and bindings decide which queues receive a copy, so a successful publish does not prove that any queue got the message.
- Direct routingAdvanced · 4 min
A direct exchange sends each message to queues whose binding key matches the routing key exactly, so a difference in case or spacing silently sends the message nowhere.
- Topic routingAdvanced · 4 min
A topic exchange routes by matching the words of a dotted routing key against patterns, where star matches one word and hash matches zero or more, so word count decides…