Kafka tirreplikà il-partitions fuq brokers multipli għal durability u availability — kull partition għandu leader u follower replicas. Jekk broker tifla, follower tieħu l-post. Il-fehim ta' replication huwa essenzjali għat-tqassim tal-ħtieġa ta' Kafka għal fault tolerance.
Kif jaħdem ir-replication
Each PARTITION is replicated across multiple brokers (REPLICATION FACTOR copies, e.g. 3):
→ LEADER replica → handles all reads and writes for the partition
→ FOLLOWER replicas → copy (replicate) the leader's data, staying in sync
→ producers/consumers interact with the LEADER; followers are backups
→ if the leader's broker FAILS → a follower is promoted to leader (failover) → no data loss,
continued availability
