Paths Subjects Questions Quizzes Pricing Search
Databases Intermediate Pro

Database Replication & Sharding

Scale reads with replicas, scale writes with shards, and reason about the failure modes of both

28 min read 10 views

Learn how single-leader, multi-leader and leaderless replication work, how quorums and failover behave, and how to shard a database by range, hash or directory — with shard-key selection, rebalancing, cross-shard queries and a worked 500M-user example.

Practice questions (6)

  • Quorum Reads and Writes

    Intermediate · Free
    View →
  • Replication Lag Anomalies in a Social App

    Intermediate
    View →
  • Failover, Lost Writes and Split-Brain

    Advanced
    View →
  • Choosing a Shard Key for a Messaging Table

    Intermediate
    View →
  • Resharding From 8 to 12 Nodes Online

    Advanced
    View →
See all 6 questions →

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.