Sharding & Partitioning

Directory routing

Tenants move between shards during rebalancing. You cannot recompute `hash(tenantId) % N` on every topology change without massive data movement. Describe a shard directory service: what it stores, how the API uses it, and how you keep the directory highly available.

Intermediate drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson