Tracks/The Logger
19

The Logger

Advanced
Storage|20 tasks

The append-only log is the most fundamental data structure in distributed systems. Kafka, Raft, WAL, Zookeeper - all logs at heart. Build WALs, LSM Trees, B-Trees, and distributed logs.

Subtracks & Tasks

Interview Prep

Common interview questions for Storage / Distributed Systems Engineer roles that map directly to what you build in this track. Click any question to reveal the model answer.

Questions are representative of real interview patterns. Model answers are starting points — adapt them with your own experience and the specific context of the interview.

Common Mistakes

The top 5 mistakes builders make in this track — and exactly how to fix them. Click any mistake to see the root cause and the correct approach.

Comparison Mode

Side-by-side comparisons of the approaches, algorithms, and trade-offs you encounter in this track. Expand any comparison to see a detailed breakdown.

Concepts Covered

write-ahead logappend-onlychecksumdurabilityfsynccrash recoverylog replaychecksum validationtorn writesstate reconstructionsegment fileslog segmentationoffset indexfast seeksimmutable segmentslog compactionsnapshottruncationatomic operationspace reclamationthroughput tradeoffbatch syncOS bufferingMemTablesorted treeskip listwrite pathin-memory bufferSSTableflushBloom filterimmutable filesorted stringsmulti-level LSML0L1sorted runslevel policysize ratiocompactionmerge sortdeduplicationwrite amplificationwrite throughputread latencyspace amplificationBloom filter impactengine comparisonB-Treepagenode structuredisk readsbinary searchinsertnode splitroot splitbalancingoverflow handlingdeleteunderflowmergeborrowrebalancingminimum occupancybuffer poolLRU evictionpage cachedirty pageshit rateperformance comparisonread amplificationengine selectionKafka partitionsegment fileoffsetsequential I/Oconsumer offsetconsumer groupcommit offsetfetch offsetat-least-once deliverypartition leaderRaft per partitionleader brokerfollower replicationmetadataISRin-sync replicasreplication lagacks=alldurability guaranteepartition assignmentrange strategygroup coordinator

Prerequisites

It is recommended to complete the previous tracks before starting this one. Concepts build progressively throughout the curriculum.