દરેક vote ને સીધો database row પર ન લખો — writes ને buffer કરો, counters ને shard કરો, અને eventual tally સ્વીકારો. 10 મિનિટમાં 5M votes એ સરેરાશ ~8,300 votes/sec છે, spikes ઘણા વધારે (એક live TV moment તેને 10x કરી શકે). ટ્રિક એ hot single-row update ને ઘણા સ્વતંત્ર, parallel increments માં ફેરવવાની છે.
Client ─▶ Edge/API ─▶ Kafka (vote events) ─▶ Consumers ─┬─▶ Dedup store (SET one-vote)
(durable buffer) └─▶ Sharded counters (INCR N shards)
│
Redis/Aggregator ◀── periodic sum of shards ──────────────────────┘
│
└─▶ Read replica / CDN cache ─▶ Live tally to clients
