Apache Kafka® Fundamentals
15% of the examWhat this topic covers
Explain how Kafka brokers, topics, partitions, and consumers work together to move data. Choose record keys and consumer groups to support stable partitioning and shared consumption.
Why does using a device ID as the record key keep its records ordered?
Kafka sends records with the same key to the same partition, so one device's records keep a stable partition and stay in order. Partition choice comes from hashing the key, so adding partitions later can move a key elsewhere.