Kafka के architecture में brokers का एक cluster (servers) होता है जो partitioned, replicated topics को store करता है, producers लिखते हैं और consumers पढ़ते हैं, जिसे metadata management द्वारा समन्वित किया जाता है (ऐतिहासिक रूप से ZooKeeper, अब KRaft)। architecture को समझना यह स्पष्ट करता है कि Kafka एक distributed system के रूप में कैसे काम करता है।
घटक
BROKERS → Kafka SERVERS forming a CLUSTER:
→ store topic partitions (the data); serve producers and consumers
→ a cluster of multiple brokers → distributes data and load; scales horizontally
TOPICS / PARTITIONS → topics split into partitions, distributed across brokers
PRODUCERS → write events to topics (to partition leaders)
CONSUMERS (in groups) → read events from partitions
COORDINATION → metadata, cluster state, leader election:
→ historically ZOOKEEPER; now KRAFT (Kafka's own built-in consensus, removing ZooKeeper)
