Fundamentals for Apache Kafkas
Kafka fundamentals are the basic building blocks of the platform. An event is a record with a key, value and timestamp, stored in a topic that is divided into partitions, each an ordered append-only log. Producers write events, and consumers in a consumer group read them, tracking their position by offset.
Stage: Key Concepts · Part of the Apache Kafka roadmap · Last reviewed 19 November 2026
What to learn in Fundamentals
- Create a topic with a chosen partition count and replication factor
- Produce and consume messages with the console tools
- Explain how the message key decides the partition
- Describe how a consumer group shares partitions among its members
- Read and reset consumer offsets for a group
Fundamentals interview questions
What is a partition in Kafka and why does it matter?
A partition is an ordered, append-only log that is a slice of a topic. Partitions spread data across brokers and allow parallel consumption, since each partition is read by one consumer in a group. Ordering is guaranteed only within a partition, not across the whole topic.
How does a consumer group work?
Consumers sharing a group id divide a topic's partitions so each partition is read by exactly one member of the group. Adding consumers up to the partition count increases throughput, and if one fails its partitions are rebalanced to others. Different groups each get all the messages.
Where Fundamentals fits in the Apache Kafka roadmap
Fundamentals belongs to the Key Concepts stage (beginner level), which takes about 20 hours. The log.
Other units in this stage
Back to the full Apache Kafka roadmap