Skip to content
All concepts

Concept

Hot key

A hot key is a single key that receives a large share of all requests, such as one viral post. Because a key lives on one server, that server is overloaded however many others exist. Adding servers does not help; the fix is to spread or copy that one key, or keep a short-lived local copy.

Watch one key take most of the traffic and saturate the single shard that owns it. A live step from the lesson Hot-key replication (Redis / caching). Timings and counts are illustrative.

Where you'll see it

Sources: Discord: How Discord stores trillions of messages ↗ · Scaling Memcache at Facebook (NSDI '13) ↗ · Redis docs: cluster specification ↗ · Report a problem

The definition is in our own words; the sources are those of the lesson Hot-key replication.