Arkitektura e Kafka përbëhet nga një grup brokerësh (serverësh) që ruajnë tema të ndarë dhe të replikuara, me prodhuesit që shkruajnë dhe konsumatorët që lexojnë, të koordinuar nga menaxhimi i metapodateve (historikisht ZooKeeper, tani KRaft). Kuptimi i arkitekturës sqaron se si Kafka funksionon si një sistem i shpërndarë.
Komponentët
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)
