System Design

Lesson 04 · 12 min

Databases under load: replicas, sharding, consistency

How to offload reads, split writes, and what you will have to give up.

12 minLesson 4 of 10Practice includedAsk AI on any point

Application servers scale easily because they have no state. The database has state, so it is almost always the first bottleneck. The usual order is: indexes and query tuning, a cache, read replicas, and only then sharding.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.