Grokking the System Design Interview, Volume II
0% completed
Step 7: Scalability and Performance
Suppose a large retailer starts a holiday sale and its checkout traffic jumps. The stateless services, from the API Gateway to the webhook service, are easy: autoscaling adds instances behind a load balancer before a planned peak.
The parts that hold state are harder, and the sale exposes five problems:
- One merchant outgrows its shard.
- Replicas lag, and some reads decide whether money moves.
- Duplicate requests and repeated lookups load the database.
- A slow bank ties up the Payment Service.
- A region fails.
Problem 1: One merchant outgrows its shard
Sharding by
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%