Try
↑ ↓ move↵ openesc close

Interview prep / Partitioning

Junior · Partitioning · System design interview question

What is a hot partition, and why does it limit a cluster?

Sketch your own answer first, then compare it with the one below.

A strong answer

A hot partition is one that receives much more traffic than the others. Each partition runs on its own machine or group of machines, so the cluster can only serve a partition's traffic as fast as that machine can. If one partition takes most of the requests, it saturates while the others sit idle.

Adding machines does not help unless the hot data is spread over them. Two common causes are key patterns that concentrate on one range, such as always inserting the newest key, and skew in the traffic, where a few keys are far more popular than the rest.

Finding one takes per-partition request and latency metrics. Comparing the busiest partition against the mean shows it quickly.

Sources

Learn it by running it

The partitioning lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms