惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Palo Alto Networks Blog
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
有赞技术团队
有赞技术团队
The GitHub Blog
The GitHub Blog
C
Cisco Blogs
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
Simon Willison's Weblog
Simon Willison's Weblog
T
Tenable Blog
Know Your Adversary
Know Your Adversary
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
月光博客
月光博客
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threat Research - Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
I
InfoQ
D
Darknet – Hacking Tools, Hacker News & Cyber Security
W
WeLiveSecurity
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
U
Unit 42
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
Attack and Defense Labs
Attack and Defense Labs
罗磊的独立博客
T
The Exploit Database - CXSecurity.com
I
Intezer
GbyAI
GbyAI
Jina AI
Jina AI
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Google Online Security Blog
Google Online Security Blog
Engineering at Meta
Engineering at Meta
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
小众软件
小众软件
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
Project Zero
Project Zero

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
24K visitors, 430K requests, $0 spent. I built a live election results dashboard in 2 days with Claude.
Karthikeyan · 2026-05-12 · via DEV Community

On May 4, 2026, while Tamil Nadu's election results were being counted, a dashboard I built from scratch was serving live data to thousands of people across 24 countries. By end of day:

  • 24k+ visits from India, US, UK, Germany, Singapore, UAE, and 18 more countries
  • 430k+ requests handled
  • 8.7 GB of bandwidth served
  • 60+ commits pushed on counting day alone
  • Total infrastructure cost: $0

No server. No database. No paid tier of anything.
The site is still live if you want to explore while you read: tinyurl.com/tn-2026

This is the story of how I built it, the architectural decisions that made it possible, and what I learned about using AI as a real engineering partner.


The Idea

When Tamil Nadu's assembly election date was announced, I saw an opportunity.

Election result sites are universally terrible. Cluttered with ads, slow to load, impossible to search, and never mobile-friendly. I wanted to build something better. Something clean, fast, and actually useful.

But I also had a second goal: I wanted to test what it actually feels like to build a production system end-to-end with AI as a coding partner. Not toy projects. Not "make me a to-do app." A real product, with real users, under real load, with a hard deadline I couldn't move.

The election result was May 4. I started building May 2. Two days. No extensions.


The Constraints

Before writing a single line of code, I set three rules:

  1. Zero cost. No paid hosting, no domain purchase. If it can't run on free tiers, find a different approach.
  2. Must handle thousands of concurrent users. Election results attract massive spikes. If it falls over at peak, the whole thing is pointless.
  3. Ship in 2 days. Not "MVP in 2 days, polish later." Live, production-ready, real-data-serving in 2 days.

These constraints sound impossible together. Free tier + thousands of users + 2 days? But constraints are where good architecture comes from.


What I Built

A single-page dashboard that gives you everything, no clicking around, no page loads.

Real-time alliance tracker with a stacked seat bar and a majority line at 118. You watch the race unfold live.

Interactive Tamil Nadu map with all 234 constituencies color-coded by leading party. Click any one for full candidate-wise vote breakdown, margins, and round-by-round progress.

Leader cards for the four key faces: Stalin, Vijay, EPS, and Seeman, each showing their personal constituency result alongside their alliance's overall tally.

Key Races section that surfaces the closest contests automatically. Sorted by margin. Tiruppattur sat at #1 all day, margin bouncing between 0 and 5. It ended at 1. One vote.

Full constituency table with search, sort, and filters by district, party, and status. Type any candidate's name, find them instantly.

Counting progress widget showing rounds completed, votes counted in lakhs and crores, and estimated remaining.

Dark theme. No ads. No login. Mobile-first with a dedicated Leaders tab. Auto-refreshes silently every 30 seconds. Vanilla JS, 242ms page load. Chart.js for charts, Leaflet for the map, Vite for the build. No React. No Next.js. No framework overhead.

Full Dashboard
Map
Vote Share
Close Races
Drill Down

All of this in 2 days. Now let me tell you how.


The Architecture: Simple, Ridiculously Effective

Here's the entire system:

[My Laptop] → Python scraper (every 2 min) → POST → [Cloudflare Worker]
                                                      ↓
                                                 [Workers KV]
                                                      ↓
                                               [Edge Cache (120s)]
                                                      ↓
                                        [24k+ visitors worldwide]

Enter fullscreen mode Exit fullscreen mode

That's it. Five components. Let me explain why each choice was deliberate.

Why a scraper on my laptop (not a server)?

ECI doesn't have an API. Each constituency's results are a separate HTML page. 234 constituencies. 234 individual web pages. To get a complete picture, I need to hit all 234, parse the HTML tables, extract candidate-wise votes, do computations and stitch them into one JSON for the Page to render the final output.

The obvious move: deploy this to AWS Lambda or a cron on a VPS. But that costs money. And now I'm monitoring infrastructure instead of building features.

So I ran it on my laptop. A Python script that scrapes all 234 pages in parallel every 2 minutes, computes everything, and POSTs the result to my Cloudflare Worker.

Total writes for the entire election day: 997. Less than a thousand writes to serve 24k+ visitors.

Why Cloudflare Workers KV (not a database)?

KV is a key-value store that replicates to Cloudflare's 300+ edge locations globally. When someone in Chennai, Singapore, or London hits my API, they're reading from a datacenter close to them, not waiting for a round-trip to a single server.

Free tier gives you 100,000 reads/day and 1,000 writes/day. I used 89,830 reads and 997 writes. Three writes to spare. I ran an entire election night within the free tier limit.

The caching trick that made it all work

Election data doesn't need to be real-time to feel real-time.

If results update every 2 minutes from my scraper, but I cache the response at the CDN edge for 120 seconds, the worst case is someone sees data that's 2 minutes old. For an election where counting takes 8 hours, nobody notices. It feels instant.

This one decision meant that 24k+ visitors hitting the same URL every 30 seconds translated to roughly 1 KV read every 2 minutes per edge location. Instead of millions of reads, I used 89K. The CDN absorbed the thundering herd.

Browser-side auto-refresh (not WebSockets)

WebSockets seem perfect for "live" data. But they're terrible for free tier:

  • Each connection holds a resource on the server
  • Can't be edge-cached
  • Complex reconnection logic

Instead: the browser fetches /api/results every 30 seconds with a simple setInterval. Every request is a normal HTTP GET that hits the CDN edge cache. The server doesn't know or care how many users are connected.

The server sends an X-Poll-Interval header telling the client how often to refresh. During active counting: 30 seconds. After all declared: stop polling entirely. Adaptive polling, zero configuration.

The static switch

Once all 234 seats were declared, I literally embedded the final JSON into the Worker code. Zero KV reads. Zero compute. The site now runs forever at zero cost. It will stay live until the internet shuts down.

One more thing I didn't pay for: the URL. Cloudflare Pages gives you a free *.pages.dev subdomain. I pointed a free tinyurl shortlink at it. A custom .in or .com domain would've cost money and needed DNS setup. The pages.dev URL worked perfectly. Sometimes the free option is the right option.


Building with Claude: What Actually Happened

I used Claude as my partner for the entire project. Here's what that looked like in practice.

What Claude did:

  • Wrote the Python scraper (parallel ECI HTML parsing, candidate extraction, alliance computation)
  • Built the entire frontend (vanilla JS, Chart.js, Leaflet maps, responsive CSS)
  • Created the Cloudflare Worker API with caching logic
  • Generated mock data for testing before election day
  • Iterated on UI changes in minutes

What I did:

  • Every architectural decision. Scraper-on-laptop vs cloud. KV vs database. Edge caching strategy. Polling vs WebSockets. Static switch when counting ends.
  • Every product decision. What features matter. What to skip. When "good enough" ships.
  • Every production judgment call. Is this safe to deploy to thousands of concurrent users right now? Will this caching change cause stale data? Should I test this first or just ship it?
  • Real-time debugging under load. Bugs surfaced live with thousands watching. I triaged, Claude fixed, deployed in minutes. More on this below.

Shipping features while thousands watched

On election day alone, I pushed 60+ commits. Here's a sample of the timeline:

Git

This is what actually looked like.

1:22 AM — Someone said the close races section was hard to scan. Ten minutes later, I shipped a full sortable Key Races table: top 50 closest contests, clickable rows, party filter, alliance color-coded borders. Not a tweak. A brand new tab.

1:37 AM — "How many votes are even counted so far?" Fair question. Shipped a counting progress widget: rounds completed, total votes counted in lakhs and crores, percentage bar showing how much is left. Five minutes, idea to production.

8:14 AM — The vote percentage was showing over 100%. Postal votes. ECI counts them separately and my denominator didn't include them. Users spotted it. I fixed the math to account for 5 lakh postal ballots on top of 4.88 crore EVM votes. Deployed before the next auto-refresh.

8:42 AM — "Can I see only the seats still being counted?" Shipped a Declared/Counting status filter on the Key Races table. The person who asked saw it live within 3 minutes of their message.

And much more features. All shipped while the site was live. While people were actively using it. No staging environment. No PR review. No deployment pipeline. Just me telling Claude exactly what to build, verifying it makes sense, and pushing.

This is the part AI skeptics miss. The speed didn't come from Claude writing code fast. It came from me knowing instantly: what the user actually needs (not what they asked for), how it fits into the existing architecture, what could break, and whether it's safe to ship without tests to thousands of concurrent users. That's not a prompt. That's a decade of engineering judgment running on instinct.


What I Learned

1. Constraints breed creativity. The $0 budget forced me into an architecture that was actually better than what I'd have built with unlimited resources. No server to maintain. No database to scale. No bills to pay. Ever.

2. AI is powerful, but engineering judgment is the real multiplier. Claude can write any code you ask for. But it can't tell you what code to write. It can't tell you that WebSockets are overkill here. It can't tell you that 120-second cache staleness is acceptable for election data. It can't tell you that a Python script on your laptop is better than a Lambda function. Those calls come from experience.

3. Ship early, fix live. Mock data on day one. Real scraper on day two. Continuous features on election day. Never "done." Always shipping.

4. People share useful things. I never paid for promotion. I shared the link in whatsapp, telegram, reddit, one Slack group and on LinkedIn. Users shared it with their friends and families. 24k+ visits from organic sharing alone.

5. Free tiers are production-ready. Cloudflare's free tier served 8.7 GB to 24 countries. The infrastructure didn't blink. If you're waiting to have a budget before building, you're waiting for nothing.


Try It Yourself

The site is still live with all final results: tinyurl.com/tn-2026

Full source code: github.com/csekeyan/tn-elections-2026

What would you build differently? Drop a comment.


Built by Karthikeyan Gopal. Sr. SDE at Amazon. If you're building with AI and want to exchange ideas, connect on LinkedIn.