Acha kupeleka traffic yote kwenye key moja: gawanya hot key kuwa N sub-keys (sharded counters), coalesce duplicate reads, tumikia kutoka local cache, na batch writes ili row moja isiupdate kwa kila request. "Likes" counter moja kwenye post ya viral inaweza kuchukua writes 50k/sekunde — row moja huwa serialization bottleneck kila transaction ikigombania lock ile ile.
Fan-out badala ya row moja iliyogombaniwa
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)
