app
→ orders · 0/s · acks=all
Each record gets one of these keys. Partition = hash(key) mod 3, so a key always lands in the same partition:
- alice → 0
- bob → 0
- carol → 2
- dave → 1
- erin → 2
- frank → 1
sent 0 · acked 0 · failed 0
Three brokers, two topics, two consumer groups, all running right here. Take a guided scenario, or break things yourself: stop a broker, cut its power, add a consumer, drag the timeline back to see it again, or type kafka-topics --describe in the terminal.
Step 1 of 8
Each big box is a broker: one Kafka server, with its own memory and disk. Here there are 3. The topic orders is split into 3 (the rows), and every partition is kept on all 3 brokers as 3 . In each row one copy is the (L), the only one that takes writes; the other two are (F) that copy it.
→ orders · 0/s · acks=all
Each record gets one of these keys. Partition = hash(key) mod 3, so a key always lands in the same partition:
sent 0 · acked 0 · failed 0
Running
Running
Running
No consumer groups yet.
Click a record to follow its journey.
00000000000000000000.log0 records0 B.index .timeindexown HW 0
00000000000000000000.log0 records0 B.index .timeindexown HW 0
00000000000000000000.log0 records0 B.index .timeindexHW: consumers read below this line · LEO: next offset to write · only in the page cache · differs from the leader at the same offset
The concepts behind what you see above. They also live under Notes, tagged #kafka.