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.