Tracks/The Consensus
06

The Consensus

Advanced
Consensus|20 tasks

Complete your Raft implementation with log replication. You will build log matching, commitment tracking, and apply entries to state machines, creating a fully functional consensus layer.

Subtracks & Tasks

Interview Prep

Common interview questions for 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

logreplicationAppendEntrieslog matchingconsistency checkconflict resolutioncommitmentmajorityquorumstate machineapplydeterminismelection restrictionsafetyup-to-datemajority replicationcommitIndexlog replicationapply channelcommitted entriesdeterministic replayno-op entryleader changeuncommitted entriessnapshotlog compactionInstallSnapshot RPCstate transferlinearizabilitynetwork partitionMaelstromend-to-end correctnessPaxossingle-decreePreparePromiseproposal numberAcceptAcceptedvalue selectionconsensussafety proofinvariantchosen valueconsensus immutabilityMulti-Paxosinfinite logPhase 1 skipstable leaderRaftmessage complexityleader change costunderstandabilityByzantine faultcrash faultmalicious nodebit flipCFT vs BFTPBFTpre-preparepreparecommitthree-phase protocolequivocationcontradictory messagesevidence collectionByzantine detectionfault threshold3f+1impossibility resultByzantine quorumTendermintCosmosblockchainvoting roundslock mechanism

Prerequisites

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