K5kC LogoK5kC | Code & More
Computer Science
AlgorithmsJavaProgramming LanguagesDatabaseSystem Design
Problems
Blind 75Algo KernelDifficulty: EasyDifficulty: MediumDifficulty: Hard
Videos
Projects
AndroidData ScienceComputer VisionSimulations
Tools
UUID GeneratorCode Formatter
Search⌘K
Computer Science
System Design
Distributed Systems
Chubby Explained

System Design

OverviewTime in Distributed SystemsLogical ClockVector ClockStorage systems overviewChecksumHinted HandoffRead RepairDisaster recoveryDisaster Recovery StrategiesRTO and RPODistributed Systems PatternsChubby Explained
Computer Science
System Design
Distributed Systems
Chubby Explained

Chubby Explained

  • Goal
  • What is Chubby?
  • Use cases
  • Leader/master election
  • Naming service
  • Storage for small objects
  • Distributed locking
  • When not to use Chubby
  • Background
  • Chubby and Paxos
  • High-level architecture
  • Terms
  • API
  • Design rationale
  • Why a service instead of a library?
  • Why coarse-grained locks?
  • Why advisory locks?
  • Why does Chubby need storage?
  • Why a Unix-like file system interface?
  • Chubby and the CAP theorem
  • How Chubby works
  • Service initialisation
  • Client initialisation
  • Example: leader election
  • Files, directories and handles
  • Nodes
  • Metadata
  • Handles
  • Locks, sequencers and lock-delay
  • Locks
  • Sequencers
  • Lock-delay
  • Sessions and events
  • Sessions
  • KeepAlive
  • Optimisations
  • Failover
  • New masters and Chubby events
  • Initialising a new master
  • Events
  • Caching
  • Invalidation
  • Database
  • Backup
  • Mirroring
  • Scaling
  • Proxies
  • Partitioning
  • Lessons learned
  • Summary
← PreviousDistributed Systems Patterns
PrivacyDisclaimerReport an IssueAbout

© 2026 K5kC | Code & More. All rights reserved.

चरैवेति चरैवेति | Keep moving on