Interview practice question
Sharding a multi-tenant SaaS database
System Design · Databases · Intermediate
Your SaaS app has 5,000 tenants of very different sizes in one database. How would you shard it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Shard by tenant ID.
- Keeps a tenant's data together.
- Big tenants get dedicated shards.
- Small tenants packed together.
- Directory table maps tenant to shard.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.