Practice problems · Topic
Partitioning problems
Covers sharding by key, range and hash, consistent hashing, rebalancing.
Partitioning problems split data or traffic by key so no single machine carries all of it. Shards share the keys, placement by key sends one user to one server, and the lesson they all teach is that a hot key still lands on one machine however many machines you add.
Problems that need partitioning
Read-Heavy API Design: Practice Problem
Design the read path for an API that is mostly reads, then run it against spikes and a cold start. Practise cache-aside, read replicas and hot keys.
Scale WebSockets Across Servers: Practice
Route each message to the one server holding its recipient's WebSocket, and survive a server dying. Practise connection directories and reconnects.
Top K Over a Sliding Window: Practice
Keep a live top ten of the last 30 seconds without recounting everything. Practise time buckets, stream processing and hot keys, then run it on a goal.
By GOAT Engineer. Practice problems · Privacy Policy · Contact.