Arhitectura Kafka constă dintr-un cluster de brokeri (servere) care stochează topicuri partiționate și replicate, cu producători care scriu și consumatori care citesc, coordonați prin gestionarea metadatelor (istoric ZooKeeper, acum KRaft). Înțelegerea arhitecturii clarifică modul în care Kafka funcționează ca sistem distribuit.
Componentele
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)
