A gida, Kafka tana ajiye bayani a matsayin ajiye-kawai log a kan jiya (tsarawa a cikin sassan), tana amfani da ingantaccen hanyoyin I/O, kuma tana sarrafa metadata na tari ta ZooKeeper (a bade) ko KRaft (yanzu). Fahimtar ciki-ciki yana zama mai mahimmanci don zararrin fahimtar halin da abubuwan aiki na Kafka.
Ajiye commit log
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)
