Partition

An ordered, append-only slice of a Kafka topic. The record key is hashed to pick the partition, so records with the same key stay in order; there is no ordering across partitions. Each partition is read by one member of a consumer group at a time.

Minimal example

bash
rpk topic create order-events -p 3

Learn this concept

Lesson 3.13 · Kafka partitions and groups

Used in exercises

Exercise 3.15 · Outbox relay to order-events Exercise 3.17 · Notifier worker with retries and DLQ Exercise 3.23 · Concurrent outbox relay