Waqqaf milli tqiegħed it-traffiku kollu fuq key wieħed: aqsam il-hot key f'N sub-keys (sharded counters), għaqqad reads duplikati, servi minn local cache, u agħmel batch tal-writes biex row wieħed ma jkunx aġġornat f'kull talba. Counter wieħed ta' "likes" fuq post virali jista' jieħu 50k write/sek — row wieħed isir serialization bottleneck hekk kif kull transaction tiġġieled għall-istess lock.
Fan-out minflok row ikkontenzjonat wieħed
50k inc/sec on post:123
│
hash(request) % N (split the key)
┌────────┬────────┬────────┬────────┐
▼ ▼ ▼ ▼ ▼
likes:123:0 :123:1 :123:2 :123:3 :123:4 ← sharded counters
└────────┴───┬────┴────────┴────────┘
▼
SUM on read = total (read fans in)
