Partitions Kafka के design के केंद्र में हैं — वे parallelism और scalability (data और consumption को distribute करना) सक्षम बनाते हैं जबकि प्रत्येक partition के भीतर ordering guarantees प्रदान करते हैं। partitions को समझना यह समझने की कुंजी है कि Kafka कैसे scale और events को order करता है।
Partitions parallelism और scale सक्षम बनाते हैं
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
