Το Kafka αναπαράγει partitions σε πολλαπλές brokers για ανθεκτικότητα και διαθεσιμότητα — κάθε partition έχει έναν leader και follower replicas. Αν ένα broker αποτύχει, ένα follower το αναλαμβάνει. Η κατανόηση της αναπαραγωγής είναι κλειδί για την ανεκτικότητα σφαλμάτων του Kafka.
Πώς λειτουργεί η αναπαραγωγή
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
