Tiktibx kull vot direttament f'row ta' database — agħmel buffer tal-writes, ippartizzjona l-counters, u aċċetta tally eventwali. 5M vot f'10 minuti huma ~8,300 vot/sekonda bħala medja, bi spikes ħafna ogħla (mument ta' TV live jista' jimmultiplika dan bi 10x). It-trick huwa li tibdel update ta' row wieħed jaħraq f'ħafna increments indipendenti u paralleli.
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
