Prompt
Need cheap backend for intermittent traffic
Latest observation
Oct 26, 2026
OpenAI APIWeb search: off
If your traffic is intermittent, the cheapest backend is usually one that scales to zero when idle and charges mostly for actual use.
Best cheap options
1. Serverless functions + managed DB
Good for most small apps, APIs, and prototypes.
- Frontend: Vercel / Netlify / Cloudflare Pages
- Backend: Serverless functions (AWS Lambda, Cloudflare Workers, Vercel Functions, Netlify Functions)
- Database: Managed Postgres or serverless DB
Why it’s cheap:
You pay little or nothing when traffic is low. Great for spiky usage.
Good combos:
- Cloudflare Workers + D1/KV/R2 — very cheap, fast, scales well
- Vercel + Supabase — easy developer experience
- AWS Lambda + DynamoDB — very cost-efficient at low traffic
- Firebase — simple, but can get pricey as usage grows
2. Cloudflare stack
Probably the cheapest for low/intermittent traffic.
- Workers for backend logic
- D1 for relational data
- KV for key-value cache
- R2 for file storage
Pros: low cost, scales to zero, generous free tier
Cons: not ideal for heavy relational workloads or complex SQL features
3. Small container on the cheapest VPS
If you want full control and predictable billing:
- Run a small app on a VPS like Hetzner, DigitalOcean, Linode, or AWS Lightsail
- Put it to sleep / restart as needed if traffic is very low
Pros: predictable monthly cost
Cons: you pay even when idle, more ops work
Best if you need:
- WebSockets
- background jobs
- custom runtime
- long-lived connections
What I’d recommend by use case
Cheapest overall:
- Cloudflare Workers + D1
Easiest to build:
- Vercel + Supabase
Most flexible with low traffic:
- AWS Lambda + DynamoDB or Lambda + RDS Proxy / Aurora Serverless
If you need a traditional server:
- Hetzner VPS is usually the cheapest reliable option
Rule of thumb
Choose serverless if:
- traffic is bursty
- you want minimal cost at idle
- request handling is stateless
Choose a VPS/container if:
- you need persistent processes
- you run cron/worker jobs
- you need WebSockets or custom services
If you want, I can suggest the cheapest stack for your exact app if you tell me:
- language/framework
- whether you need a database
- expected traffic pattern
- whether you need websockets/background jobs