Skip to content
Coding FodingcodingFoding(you: Human)
  • Careers
  • Pricing

Theme

Heading font

  1. Home
  2. System Design
  3. High Level Design
  4. Consensus, Leader Election and Distributed Locks

Part 03 · High Level Design

Consensus, Leader Election and Distributed Locks

ConsensusRaftLeader electionDistributed locksFencing tokensClocks

Concurrency across machines: why clocks lie, leader election, consensus with Raft, and distributed locks that stay safe with fencing tokens.

⏱ 3-4 hours · Station 28 of 80

272829
← Previous stopCAP Theorem and Consistency ModelsNext stop →Microservices, Saga and Outbox
Coding FodingcodingFoding(you: Human)

Everything you need, in one path.

Start free

Learn

  • Backend First Principles
  • DevOps & Cloud
  • System Design
  • AI & LLM Engineering
  • Database Internals
  • Frontend System DesignSoon

Practice

  • DSA problems
  • AI / ML problemsSoon
  • System Design Problems
  • Build to Hire

Interview

  • Interview PrepSoon
  • Most Common QuestionsSoon
  • Interview ExperiencesSoon
  • Success StoriesSoon

Community

  • Leaderboard
  • Blogs
  • Roadmap

More

  • Careers
  • Pricing

//codingFoding()

© 2026 Coding Foding · Made with ❤️ in Bangladesh