అంతర్నిహితంగా, Kafka డేటాను డిస్క్పై append-only లాగ్ గా (segments లో సంఘటితమైనది), సమర్థవంతమైన I/O పద్ధతులను ఉపయోగించి, మరియు క్లస్టర్ మెటాడేటాను ZooKeeper (చారిత్రికంగా) లేదా KRaft (ఇప్పుడు) ద్వారా నిర్వహిస్తుంది. అంతర్నిహితమైన విషయాలను అర్థం చేసుకోవడం Kafka యొక్క ప్రవర్తన మరియు పనితీరు యొక్క అర్థాన్ని లోతుగా చేస్తుంది.
Commit లాగ్ స్టోరేజ్
Each partition is an append-only LOG stored on disk, split into SEGMENTS (files):
→ new events are APPENDED to the end (sequential writes → fast)
→ events are immutable once written; identified by OFFSET
→ old segments are deleted (retention) or compacted
→ an INDEX maps offsets to file positions (fast lookups)
→ the append-only log is the core of Kafka's design (durable, sequential, efficient)
