Kafka's architectuur bestaat uit een cluster van brokers (servers) die gepartitioneerde, gerepliceerde topics opslaan, met producers die schrijven en consumers die lezen, gecoördineerd door metadata management (historisch ZooKeeper, nu KRaft). Het begrijpen van de architectuur verduidelijkt hoe Kafka werkt als een gedistribueerd systeem.
De componenten
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)
