प्रत्येक 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
