ஒவ்வொரு vote-ஐயும் நேரடியாக ஒரு database row-க்கு எழுத வேண்டாம் — writes-ஐ buffer செய்யுங்கள், counters-ஐ shard செய்யுங்கள், eventual tally-ஐ ஏற்றுக்கொள்ளுங்கள். 10 நிமிடங்களில் 5M votes என்பது சராசரியாக ~8,300 votes/sec, மிக அதிக spikes உடன் (ஒரு live TV தருணம் அதை 10x செய்யலாம்). ஒரு hot single-row update-ஐ பல சுயாதீன, parallel 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
