DEV Community

RISHABH KESHARI
RISHABH KESHARI

Posted on

How I Bypassed Server Costs to Build a High-Traffic Web App

As a student developer, building an application that needs to handle thousands of concurrent users usually means one thing: a massive, terrifying bill from AWS or Google Cloud.
When I set out to build my latest project—a test series website designed to handle 2,000 to 5,000 concurrent students—I had a budget of exactly $0.
Here is the exact "Indie Hacker Architecture Stack" I used to build and deploy a high-traffic app completely for free:

⚡ 1. The Symmetrical Split (Frontend)

Instead of hosting everything on a single server, I decoupled the layers. I deployed the entire user interface to Vercel / Cloudflare Pages. Because they use global CDNs, thousands of students can load the landing pages, assets, and UI components simultaneously without costing a single cent or touching my backend infrastructure.

🏗️ 2. Distributed Compute (The Backend Engine)

To process quiz answers without crashing, I leveraged the Oracle Cloud Free Tier. They offer an incredibly generous 4 ARM CPUs and 24 GB of RAM for free. By making the architecture completely stateless and using JSON web tokens (JWT) for user sessions, requests can be balanced across instances seamlessly.

🌐 3. Bypassing Network Barriers (Development)

During local testing, my laptop was stuck behind strict campus Wi-Fi and mobile CGNAT firewalls. I used Cloudflare Tunnels (cloudflared). It established a secure outbound bridge from my local machine to the internet, giving me a public HTTPS URL without needing a public IP or touching router port forwarding.

🗄️ 4. High-Speed Database Pooling

A standard database locks up under thousands of rapid simultaneous writes. By pairing the stack with Supabase (PostgreSQL) and leveraging its built-in connection pooler, incoming quiz submissions are safely queued and written without hitting performance ceilings.
The Takeaway: You don't need a massive budget to build production-ready, scalable applications. You just need to leverage modern free-tier ecosystems and smart architectural design.

Top comments (0)