உள்ளிலே, Kafka தரவை append-only log என்று disk-ல் சேமிக்கிறது (segments-ல் organize செய்யப்பட்டு), efficient I/O techniques-ஐ பயன்படுத்துகிறது, மற்றும் cluster metadata-ஐ ZooKeeper (வரலாற்று ரீதியாக) அல்லது KRaft (இப்போது) மூலம் நிர்வகிக்கிறது. Kafka-வின் internals-ஐ புரிந்துகொள்வது Kafka-வின் behavior மற்றும் performance-ஐ பற்றிய புரிதலை ஆழமாக்குகிறது.
The commit log storage
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)
