Sharded vs hybrid multi-tenant DB architectures for large SaaS platforms
goyalshaliniuk · x · 2026-12-02
Continuing a multi-tenant architecture series, the author details two patterns:
4. Hybrid multi-tenant architecture
- Small tenants share database instances; high-volume tenants get dedicated databases
- A tenant routing layer locates each tenant's data
- Tenants can move between tiers as they grow
- Best for SaaS platforms serving mixed customer sizes
5. Sharded multi-tenant architecture
- A shard key (usually tenantid) determines data placement; a routing service directs queries to the right shard
- Each shard handles a subset of tenants, with rebalancing when capacity is uneven
- Best for large SaaS platforms with many tenants and large data volumes
- Trade-off: cross-shard queries, tenant migration, and distributed transactions become harder
Related event: Comparison of Five Multi-Tenant Database Architectures for SaaS(2 posts)→
More from Infra
- GPU rental rates drop up to 40% as chip glut emerges after export controls — teortaxesTex · 2026-12-02
- DeepSeek on Ascend 950DT: GB200 roughly 3.4-3.6x more energy-efficient at matched decode speed — teortaxesTex · 2026-12-02
- DeepInfer hits ~8800 tok/s/GPU on Huawei SuperNodes at 100 tps per request — teortaxesTex · 2026-12-02
- Is your API proxy swapping models? A comparison of 5 verification methods — Just_Regret_1925 · 2026-12-02
- Transformers now ships SDPA + kernels + max-autotune as defaults, ending unfair speed comparisons — ariG23498 · 2026-12-02
- Waymo picks AMD x86 embedded processors in multiyear autonomous driving partnership — ryanshrout · 2026-12-02