প্রতিটি vote সরাসরি একটি database row-তে লিখবেন না — write buffer করুন, counter shard করুন, এবং eventual tally মেনে নিন। ১০ মিনিটে ৫০ লক্ষ vote গড়ে ~৮,৩০০ vote/sec, spike অনেক বেশি (একটি live TV মুহূর্ত এটিকে ১০x করতে পারে)। কৌশলটি হলো একটি hot single-row update-কে অনেক স্বাধীন, সমান্তরাল increment-এ রূপান্তরিত করা।
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
