Skip to content
We areTOP 1%
System Design · Building Blocks · Topic 3 of 5

Databases: Replication & Sharding

4 questions.
Your progress0%
1st Visit
0/4
2nd Visit
0/4
Revise
0/4

Overview

The database is usually the hardest part of a system to scale, because it holds state that must stay correct. Replication copies the same data to several machines to add read capacity and survive failures, while sharding splits data across machines so that each holds only part of it, adding write capacity and storage. This topic also covers choosing between relational and NoSQL stores. Signals include write volumes beyond what a single primary can handle, datasets larger than one machine, read-heavy traffic, and requirements for high availability across zones. In an interview, state your data model and access patterns first, then justify the database choice, the replication approach and the shard key.

Questions

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account