HardExperience level: 8-15 years1 min read

What is the hot-key (celebrity) problem, and how do you solve it?

Reviewed by Gurusankar M.

Asked inAmazonGoogleMicrosoft
#hot key#celebrity problem#skew#caching#sharding
Report issue

Short Answer

One key gets disproportionate traffic (a viral post, a popular product), overwhelming its single shard/cache node despite good overall partitioning. Solutions: replicate the hot key across nodes, add a client-side/local cache in front, shard the key with a suffix, or precompute/serve it from a CDN.

On this page

Concept Made Simple

Coffee Chat Question

“What is the hot-key (celebrity) problem, and how do you solve it?”

Remember It Faster

Mind Map Answer

Problem
one key ≫ traffic → single-node overload
Replicate
copy hot key to many nodes
Local cache
cache in front of the shard
Shard/suffix
split a hot write key

Think Beyond the Expected

What If?

Consistent hashing spreads keys evenly — why doesn't it fix a single hot key?

Consistent hashing balances DIFFERENT keys across nodes, but ALL requests for one specific key still hash to the SAME node — so a single super-popular key concentrates load on one node regardless. You need per-key remedies: replication, local caching, or key-sharding, not just good partitioning.

Real World

Hot keys (celebrity accounts, flash-sale products, viral content) are a recurring scaling problem; the fixes — replicate/local-cache reads, shard hot writes, CDN static hot content — appear across feed, cache, and DB designs.

Interviewer's Expectation

Keywords they're listening for:

  • skewed single-key load
  • hashing doesn't help one key
  • replicate/local cache reads
  • shard hot writes
  • CDN for static hot content

Common Mistakes

  • Assuming consistent hashing solves hot keys
  • No detection/mitigation for viral content
  • Same fix for read vs write hotspots

Best Practices

  • Replicate/local-cache hot read keys
  • Shard hot write keys with a suffix
  • Detect hotspots and serve static ones via CDN

Follow-up Questions

  1. How do you detect a hot key at runtime?
  2. Read hot key vs write hot key — different fixes?
  3. How does this show up in a news feed design?

Continue Learning with AI

Take this question deeper with your favourite AI assistant. Pick a depth, copy the prompt, or open it directly — AI is your learning companion, not a shortcut.

Plain-language foundations

I'm preparing for a software engineering interview and want to understand this from scratch, as a beginner.

Topic: Scaling (System Design)
Interview question: "What is the hot-key (celebrity) problem, and how do you solve it?"

Please:
1. Explain the core idea in simple, plain language, using an everyday analogy.
2. Define any technical terms you use.
3. Walk through one small, concrete example.
4. Finish with a single sentence I can easily remember.

Keep the tone friendly and assume I'm new to this topic.
Open inChatGPTGeminiClaude

Was this answer helpful?

Affiliate links

Equipment for a comfortable, productive setup.

As an Amazon Associate I earn from qualifying purchases.