Kafka replicate செய்கிறது partitions-ஐ multiple brokers-க்கு durability மற்றும் availability க்காக — ஒவ்வொரு partition-க்கும் leader மற்றும் follower replicas உள்ளது. ஒரு broker fail ஆனால், follower அதன் இடத்தை எடுக்கிறது. Replication எவ்வாறு செயல்படுகிறது என்பதைப் புரிந்துகொள்வது Kafka-வின் fault tolerance-க்குக் முக்கியமாகும்.
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
