Kafka'nın mimarisi, broker kümesinden (sunucular) oluşur ve bölünmüş, çoğaltılmış konuları (topics) depolar, üreticiler (producers) yazarken tüketiciler (consumers) okur ve meta veri yönetimi tarafından koordine edilir (tarihsel olarak ZooKeeper, şimdi KRaft). Mimarinin anlaşılması, Kafka'nın dağıtılmış bir sistem olarak nasıl çalıştığını açıklar.
Bileşenler
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)
