Kafka రిప్లికేట్ చేస్తుంది పార్టిషన్లను బహుళ బ్రోకర్ల అంతటా దృఢత్వం మరియు లభ్యత కోసం — ప్రతి పార్టిషన్కు ఒక లీడర్ మరియు ఫాలోవర్ రెప్లికాలు ఉన్నాయి. బ్రోకర్ విఫలమైతే, ఫాలోవర్ బాధ్యతను తీసుకుంటుంది. రిప్లికేషన్ 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
