Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Moved 5 Side Projects to $0/Month Free Tiers — Vercel, Neon, and Cloudflare Paid Me Back $62/Month

说明与用途

将五个小型副项目迁移到 Vercel、Neon 和 Cloudflare 的免费层,将每月费用从 62 美元降至 0 美元,同时保持 99.9% 的正常运行时间并提升性能。

问题

Monthly hosting and database costs for five small side projects exceeded $60/month, despite each having under 1,000 users.

结果

Reduced monthly cost from $62 to $0 while maintaining 99.9% uptime and improving performance with global CDN.

工作流

  • 1. Migrate Postgres: pg_dump from VPS, psql to Neon using connection string.
  • 2. Use Neon branches for PR testing: neon branches create --name pr-42, run migrations/tests, delete branch.
  • 3. Move cron jobs to Cloudflare Workers Cron: add crons = ["*/15 * * * *"] in wrangler.toml and fetch keep-warm endpoint.
  • 4. Replace VPS container API with Cloudflare Workers + Durable Object.
  • 5. Switch frontend hosting to Vercel, CDN/DNS to Cloudflare free, Redis to Upstash.
  • 6. Monitor for cold starts and timeouts; keep warm via cron and move heavy PDF generation to queue.

证据

Moving Postgres from my VPS to Neon took 10 minutes: pg_dump ... psql ...

来源

Neon cold starts — free tier scales to zero. First query after idle: ~800ms penalty.

来源

Before: $62/month = $744/year; After: $0/month, 99.9% uptime over 90 days

来源

  • 记录日期: 2026-09-20T08:45:19.293Z