आन्तरिक रूपमा, Kafka डेटा डिस्कमा append-only log को रूपमा भण्डार गर्छ (segment मा संगठित), कुशल I/O प्रविधि प्रयोग गर्छ, र क्लस्टर metadata ZooKeeper (ऐतिहासिक रूपमा) वा KRaft (अहिले) मार्फत व्यवस्थापन गर्छ। Kafka को आन्तरिकता बुझ्नु यसको व्यवहार र कार्यक्षमता को गहिरो समझ बढाउँछ।
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)
