Kafka, RabbitMQ & Queues
ISR and high watermark
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 it.
What you will be able to do
- Explain how the ISR and the high watermark decide what is durable and visible.
- Decide when a shrinking ISR needs action before a broker is changed.
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
- Exactly once boundariesIntermediate · 4 min
Kafka exactly-once covers the records and offsets written inside Kafka. A database write or an external call sits outside that commit, so it needs its own key or outbox.
- Retention and compactionIntermediate · 4 min
Delete retention removes old segments by time or size, while compaction keeps the latest record for each key. A state topic needs compaction if old keys must survive.
- 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…
- Kafka lag metricsAdvanced · 4 min
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.
- 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.