हर vote को सीधे एक database row में न लिखें — writes को buffer करें, counters को shard करें, और eventual tally स्वीकार करें। 10 मिनट में 50 लाख votes औसतन ~8,300 votes/sec है, spikes उससे कहीं ऊंची (एक live TV क्षण उसे 10x कर सकता है)। तरकीब है एक hot single-row update को कई स्वतंत्र, समानांतर 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
