Skip to the solution
MediumSystem Design3 min read

How do you choose between SQL and NoSQL and scale each (replication, sharding, federation)?

655 views

The problem

SQL vs NoSQL decision tree and concrete scaling patterns: read replicas, sharding, federation, and denormalization.

  • sql
  • nosql
  • replication
  • sharding
  • federation
  • database
  • scaling

Try it yourself

Sketch your approach before you read the solution. That is what the interview tests.

Stuck? Get a hint.

A short nudge toward the approach. It will not give the answer away.

Solution

The solution is hidden so you can try first

3 min read · 4 sections

Discussion

Other approaches, follow-ups and how it went in real interviews.

Sign in to join the discussion.

No comments yet. Share how you would answer it.

Question 26 of 106 in System design

Keep your momentum going.

Mark this question solved to track your progress, then take the next one while it is fresh.

Up nextMedium

What is database sharding?

Continue