Partities staan centraal in Kafka's ontwerp — ze maken parallelisme en schaalbaarheid mogelijk (gegevens en consumptie verdelen) terwijl ze ordening garanderen binnen elke partitie. Het begrijpen van partities is essentieel voor het begrijpen hoe Kafka schaalt en events ordent.
Partities maken parallelisme en schaling mogelijk
A topic is split into multiple PARTITIONS, distributed across brokers:
→ data is spread across partitions → distribute storage and load
→ CONSUMER PARALLELISM → each partition consumed by one consumer in a group →
more partitions = more parallel consumers = higher throughput
→ scale a topic by adding partitions (and consumers)
→ partitions are the unit of PARALLELISM and horizontal scaling in Kafka
