Pick the fix
A celebrity's profile key gets 200,000 reads a second, all on one cluster node. Best fix?
Hint 1 of 1
Does adding shards move one key?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Keep a few-second in-process copy in each app server, and/or replicate it under several suffixed keys
Correct. Spreads one key's load across many places.
Cluster sharding spreads different keys across nodes, but one key always lives on one slot. A hot key needs copies: a short in-process cache or several suffixed replicas that readers pick from.
Why not the others?
- B Add more cluster shards. The key still hashes to one slot.
- C Increase its TTL. TTL doesn't change read load.
- D Move it to the database. Worse.