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)
-
View →
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