Distributed Systems & Consensus (Raft / Paxos)
Learn distributed consensus from first principles: clocks, quorums, FLP, Paxos, Raft elections and logs, etcd, ZooKeeper, fencing and interview prep.
Distributed Systems & Consensus (Raft / Paxos) Hindi mein seekhein — free Distributed Systems & Consensus (Raft / Paxos) tutorial in Hindi, lessons, shorts aur interview questions ke saath.
कोर्स शुरू करें → · इंटरव्यू प्रश्न
33 पाठ · 11 मॉड्यूल · मुफ़्त
आप क्या सीखेंगे
- Explain partial failure, failure and timing models, and why a timeout can only suspect a crash.
- Order events with Lamport and vector clocks instead of unreliable wall clocks.
- Reason about quorums, consistency models, CAP/PACELC, FLP and why 2PC blocks.
- Trace Basic Paxos and Multi-Paxos and argue why quorum intersection keeps them safe.
- Walk through Raft elections, log replication, commit rules, membership changes, snapshots and linearizable reads.
- Use etcd and ZooKeeper for coordination and protect shared resources with leases and fencing tokens.
- Diagnose production pitfalls and choose testing techniques such as deterministic simulation, Jepsen and TLA+.
पाठ्यक्रम
Mental Model: Nodes, Messages and Failure
- Why Distribute, and Why It Is Hard
- Failure Models: Crash, Omission and Byzantine
- Timing Models and Failure Detection
Time, Clocks and Ordering Events
- Physical Clocks and Why They Lie
- Lamport Clocks and Happens-Before
- Vector Clocks and Detecting Concurrency
Replication and Consistency Models
- Replication Strategies and Quorums
- Consistency Models: Linearizable to Eventual
- CAP and PACELC Without the Myths
The Consensus Problem
- The Consensus Problem and State Machine Replication
- The FLP Impossibility Result
- Two-Phase Commit vs Consensus
Paxos
- Basic Paxos: Prepare, Promise, Accept
- Why Paxos Is Safe, and Dueling Proposers
- Multi-Paxos and the Paxos Family
Raft: Terms and Leader Election
- Raft Overview: Roles, Terms and RPCs
- Leader Election and Randomised Timeouts
Raft: Log Replication and Safety
- Log Replication with AppendEntries
- Committing Entries and the Current-Term Rule
- Raft Safety: Election Restriction and Leader Completeness
Raft in Practice: Membership, Snapshots and Reads
- Cluster Membership Changes
- Snapshots and Log Compaction
- Linearizable Reads: Log Reads, ReadIndex and Leases
Consensus in Real Systems: etcd, ZooKeeper and Locks
- etcd: A Raft-Backed Key-Value Store
- ZooKeeper and the Zab Protocol
- Distributed Locks, Leases and Fencing Tokens
Performance, Pitfalls and Verification
- Performance: Latency, Batching and Multi-Raft
- Production Pitfalls: Split Brain, Pre-Vote and Disruptive Nodes
- Testing and Verifying Consensus Systems
- Byzantine Fault Tolerance and Blockchains
Revision and Interview Prep
- Cheat Sheet: Everything on One Page
- Common Interview and Exam Questions
- Mixed Self-Check