📥Kafka Partition
Also known as Topic Partition, Partition Key
One ordered slice of a topic. More slices let more readers work at once.
Think of it like
It is like the lanes at a supermarket till. More lanes serve more people, but each lane has its own line.
Example
Orders are keyed by customer ID. All of Lucy's orders land in partition 2, so they are read in the order she placed them.
Why it matters
Partitions let Kafka grow. They also decide which events stay in order.
Definition
Common mistake
Key takeaways
- 1Ordered inside. Not across partitions.
- 2Same key, same partition. Keys keep related events together.
- 3Parallel reads. One reader per partition in a group.