In this lesson · topic 3 of 7
Topic 3
Four partitions, one hot key, one rebalance
7 min read
A group reading four partitions
The lab starts with four partitions, four consumers and no hot key. Each row is a partition, with its owner and its lag. Below them each consumer shows which partitions it holds. The buttons add a consumer, remove one, or rewind every partition to the oldest message the log still keeps. The counters show two kinds of order break. A same-key break would mean a bug. A cross-key break is normal.
Predict before you press play
Things to try
- Leave the defaults and watch the two order counters. Same-key breaks stay at zero. Cross-key breaks keep rising.
- Raise the starting consumers above the number of partitions. The extra consumers show as idle.
- Give half the messages to one key. One partition’s lag climbs while the others stay empty.
- Press “A consumer leaves” and watch the status line and the lag chart. Then try a longer rebalance pause.
- Press “Replay from the earliest offset” and watch the re-read counter. Order stays intact.
The full-page lab has five guided experiments you can apply with one click.