Track 4 · Messaging and Correctness
Kafka Hands-on Lab
Bring up a three-broker Kafka cluster on your laptop and break it on purpose. Keys, consumer groups, offset resets, retention, killing a leader, and a write that a healthy broker refuses.
Hands-on lab40 min read
On this page
- Why you should run this once
- Bring up the cluster
- Exercise 1: Create a topic and read what you wrote
- Exercise 2: Keys decide the partition
- Exercise 3: Consumer groups and rebalancing
- Exercise 4: Offsets, lag and rewinding a group
- Exercise 5: Retention removes records, not consumers
- Exercise 6: Kill the leader of a partition
- Exercise 7: A healthy leader that refuses your write
- Exercise 8: Idempotent producer, duplicates and transactions
- Exercise 9: Change a setting on a live topic
- When something goes wrong
- Clean up
- What this lab teaches, and what it hides