Shard the Database
Hard About 45 min Katabench Pro
The dataset outgrew the biggest machine you can rent and one database can't hold it. Split the data across shards and route each key to the shard that owns it.
The full brief is part of Katabench Pro
Pro opens this kata's brief and its grader. To see how the track works first, try Handle Celebrity Fan-out, which is free with an account.
How it is graded
You build the design on a canvas, and Katabench checks the topology against the challenge's design rules.
What it practices
- Sharding and partitioning
- Split data and ownership by key when one node cannot hold or serve it.
Do these first
Related katas
- Claim the Front Row Hard Pro 20,000 claims in ten seconds pile up on a few hundred row locks, and fans buying in other stands time out too. Keep a hot stand from stalling the sale.
- Operate the Onsale Hard Pro The provider slows down, no component fails, and the sale still gets worse for 20 minutes. Rebuild the onsale so the next slowdown does not snowball.
- Operate the Web Crawler Hard Pro Synthesize durable discovery, partitioned ownership, polite fetching, content identity, replayable indexing, quarantine, secrets, and telemetry.
- Partition Crawl Ownership Hard Pro Route every host to one durable frontier shard so crawl state can scale out without two partitions attacking the same origin.