Aja nulis saben swara langsung menyang row database — buffer tulisan, shard counter, lan tampa tally sing eventual. 5 yuta swara sajrone 10 menit yaiku ~8.300 swara/detik rata-rata, kanthi lonjakan sing luwih dhuwur (momen TV langsung bisa nggawe 10x kuwi). Trik-e yaiku ngowahi update siji-row sing panas dadi akeh increment mandiri sing paralel.
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
