Blog/

Hot Key Problem

Lesson overview

Hot Key Problem

A clustered cache can shard keys evenly and still melt one node when one key is a celebrity — like India–Pakistan cricket score. Copy that hot key onto other caches so the reads spread out.

Application server

clustered cache

keys are properly distributed

india pakistan

score : 110/1

score : 111/1

score : 123/1

score : 140/1

ind_pak_cric_score

ind_pak_foot_score

ire_sri_cri_score

ben_los_tt_score

ff_dj_tenis_score

nad_fd_tennis_score

HOT KEY PROBLEM

Make a copies of this key in other caches as well

COMMENT 'LINK'

Follow me for System Design Videos

Loading Hot Key Problem…