You just built your micro-SaaS MVP. It works locally. Now you need to deploy it without spending $400/month on AWS infrastructure you don’t understand or hiring a DevOps engineer you can’t afford.

Every cloud provider wants you to believe you need their enterprise-grade Kubernetes cluster, auto-scaling load balancers, and multi-region failover to run a SaaS app with 47 users. They’re selling you a Formula 1 car when you need a reliable Honda Civic.

I’ve launched 6 micro-SaaS products in the last 18 months. Total infrastructure cost across all 6: $87/month. That’s $14.50 per app. Zero downtime incidents. Zero “sorry, our site is down” apology emails.

Here’s the tech stack that works for solopreneurs shipping real products, not playing DevOps engineer.

The 4-Layer Micro-SaaS Infrastructure Stack (Under $15/Month Per App)

Your infrastructure needs 4 things: compute (where your code runs), database (where your data lives), monitoring (how you know when things break), and deployment (how you ship updates). That’s it.

Layer 1: Compute + Hosting

Layer 2: Database

Layer 3: Monitoring + Error Tracking

Layer 4: Deployment + CI/CD

Let’s break down each layer with real pricing, real tools, and zero bullshit.

Layer 1: Compute + Hosting ($5-7/Month)

Railway ($5/month) — My Primary Recommendation

Railway gives you 500 hours of compute + 100GB bandwidth for $5/month on their Hobby plan. That’s enough for a micro-SaaS with under 500 users. Deploy from GitHub in 3 clicks. No YAML files. No Docker expertise required (though it supports Docker if you want it).

What I use it for: Node.js apps, Python FastAPI backends, Go services. Automatic HTTPS. Custom domains in 2 minutes. Environment variables through a UI that doesn’t make you cry.

Real example: My recruiting SaaS (2,100 monthly active users) runs on Railway’s $5 plan. Average response time: 180ms. Uptime last 90 days: 99.96%.

When Railway works: Web apps, APIs, scheduled jobs, webhooks. Basically anything that runs in a container.

When it doesn’t: If you need more than 8GB RAM or sustained high CPU (video processing, ML inference). Then you’re looking at $20-50/month.

Render ($7/month) — Solid Alternative

Render’s pricing is clearer than Railway for some workloads. $7/month gets you a single web service with 512MB RAM. Their free tier is generous (good for staging environments), but production needs paid.

Why I prefer Railway: Railway’s $5 gives you more flexibility (multiple services, background workers). But if you have ONE simple web app and want predictable pricing, Render is great.

Render’s secret weapon: Built-in cron jobs. Railway charges extra for persistent cron. If your app needs scheduled tasks, Render wins.

Fly.io (Free tier, then $2-5/month) — For the Technically Curious

Fly has the most generous free tier: 3 shared-cpu VMs + 3GB storage + 160GB bandwidth. Perfect for side projects. But their pricing gets complicated fast once you scale.

When I use Fly: Edge computing (deploy close to users globally), WebSocket-heavy apps, or when I need specific regions (they have 30+ locations).

Skip if: You want simple. Fly optimizes for flexibility, not ease. Railway/Render are simpler for 90% of micro-SaaS use cases.

What I Don’t Recommend (And Why)

AWS Elastic Beanstalk: “$7/month” turns into $60/month after load balancers, CloudWatch logs, and data transfer fees you didn’t see coming.

Heroku: $25/month for what Railway gives you for $5. They pioneered the “easy deploy” model, then got greedy after Salesforce acquired them.

DigitalOcean App Platform: $12/month for 512MB RAM. Railway gives you more for less. DO’s Droplets (VMs) are fine if you want to manage servers yourself, but App Platform is overpriced.

Vercel/Netlify for backends: Great for frontends. Terrible for backends (cold starts, execution time limits, vendor lock-in). Use them for your landing page, not your API.

Layer 2: Database ($0-5/Month)

Supabase (Free, then $25/month) — PostgreSQL + Auth + Storage

Supabase’s free tier gives you 500MB database + 1GB file storage + 50K monthly active users. That’s enough to validate your idea and get to $1K MRR before paying a cent.

What you get: PostgreSQL database, built-in authentication (email/password, OAuth, magic links), file storage (like AWS S3), and auto-generated REST + GraphQL APIs. It’s basically Firebase but with a real database you can SQL query.

Real example: My project management SaaS ran on Supabase free tier for 7 months (340 paying customers, $4.2K MRR) before I hit the 500MB limit and upgraded to $25/month.

Why I love it: Row-level security (RLS) policies mean I write database-level access control instead of application logic. Fewer bugs. Better security.

When to upgrade ($25/month): When you hit 500MB database size OR need daily backups OR want better performance (connection pooling).

PlanetScale (Free, then $29/month) — MySQL with Git-Like Branching

PlanetScale gives you 5GB storage + 1 billion row reads/month on the free tier. They use Vitess (YouTube’s database tech) under the hood, so it scales to billions of rows without you doing anything.

The killer feature: Database branching. Create a branch of your database, test schema changes, merge back. It’s like Git for your database. Makes migrations way less scary.

When I use PlanetScale over Supabase: When I’m building something that might blow up fast (high write volume, lots of reads). PlanetScale handles scale better. But Supabase’s auth/storage combo usually wins for micro-SaaS.

Skip if: You need PostgreSQL-specific features (Supabase) or real-time subscriptions (Supabase does this, PlanetScale doesn’t).

Neon ($0-19/month) — Serverless Postgres with Autoscaling

Neon is PostgreSQL that scales to zero (you only pay for what you use). Free tier gives you 3GB storage. Paid starts at $19/month for more storage + better performance.

Why it’s interesting: Database branches (like PlanetScale) + PostgreSQL compatibility (like Supabase) + serverless pricing (pay per GB-hour).

When I use it: Staging environments (scales to zero when not used = free). Or when I want Postgres but don’t need Supabase’s auth/storage features.

What I Don’t Recommend

MongoDB Atlas free tier: 512MB limit is tiny. You’ll outgrow it fast. Their $9 tier is fine, but for that price Supabase gives you PostgreSQL + auth + storage.

AWS RDS: Minimum $15/month for a t3.micro instance that’ll fall over under any real load. Then add $8/month for automated backups. Supabase free tier beats this.

Self-hosted databases on a $5 VPS: Sure, you save money. Until your disk fills up at 3am and you lose customer data because you forgot to set up backups. Managed databases are worth it.

Layer 3: Monitoring + Error Tracking ($0-8/Month)

Sentry (Free, then $26/month) — Error Tracking That Actually Works

Sentry’s free tier gives you 5,000 errors/month + 10,000 performance transactions. For a micro-SaaS under 1K users, that’s plenty.

What it does: Captures every error in your app (frontend + backend), shows you the exact stack trace, tells you which user hit it, lets you replay the session that caused it.

Real example: Last week Sentry alerted me that 3 users hit a null pointer error in my billing flow. I fixed it in 8 minutes. Without Sentry, I wouldn’t have known until someone emailed “hey, I can’t upgrade to paid.”

Why error tracking matters: You can’t fix bugs you don’t know exist. Sentry tells you what’s breaking before your users do.

Free tier limits: 5K errors/month. If you’re hitting that regularly, you have bigger problems than monitoring budget.

BetterStack (formerly Logtail) ($0-8/month) — Logs + Uptime Monitoring

BetterStack’s free tier gives you 1GB logs/month + 10 uptime monitors. Enough to monitor your app + database + any third-party APIs you depend on.

What I use it for: “Ping my app every 60 seconds, alert me on Slack if it’s down.” Plus centralized logs from Railway/Render so I can grep through errors without SSHing into servers.

Alternative: UptimeRobot (free, 50 monitors) for uptime only. But BetterStack’s $8/month plan adds structured logging which is worth it once you’re making money.

PostHog ($0, then $20/month) — Product Analytics

PostHog’s free tier gives you 1 million events/month. Track user behavior, run A/B tests, record sessions, build funnels.

Why I use it over Google Analytics: Event-based tracking (not page views), session replays (watch users interact with your app), and self-hosted option (GDPR compliance without asking lawyers).

When to pay ($20/month): When you hit 1M events OR want feature flags (toggle features on/off without deploying).

What I Don’t Use

Datadog/New Relic: Amazing products. Also $70-200/month minimum. Total overkill until you’re past $50K MRR.

Self-hosted Grafana + Prometheus: Cool DevOps project. Terrible use of solopreneur time. BetterStack’s $8/month beats spending 12 hours setting up monitoring dashboards.

Layer 4: Deployment + CI/CD ($0)

GitHub Actions (Free, 2,000 minutes/month) — Automated Deploys

Every time you push to main, GitHub Actions can run your tests, build your app, and deploy to Railway/Render/Fly. All automated. All free (up to 2,000 minutes/month, which is ~60 deploys).

My typical workflow:

  1. Push code to GitHub
  2. GitHub Actions runs tests (Jest, Playwright, whatever)
  3. If tests pass, deploy to staging (Fly free tier)
  4. If staging looks good, promote to production (Railway)
  5. Sentry automatically tracks the deploy (links errors to commits)

Time from “git push” to “live in production”: 3-5 minutes. Fully automated. No manual deploys.

Alternative: Railway/Render have built-in GitHub integration (auto-deploy on push). Simpler than GitHub Actions, but less flexible. Start with built-in, graduate to Actions when you need custom steps.

What I Don’t Recommend

Jenkins: Self-hosted CI/CD. You’ll spend more time managing Jenkins than shipping features.

CircleCI/Travis CI paid plans: GitHub Actions free tier beats their free tiers. Only pay for CI/CD when you’re past $10K MRR and need more minutes.

The Complete $15/Month Stack

LayerToolCost
ComputeRailway Hobby$5/month
DatabaseSupabase Free$0/month
ErrorsSentry Free$0/month
UptimeBetterStack Free$0/month
AnalyticsPostHog Free$0/month
CI/CDGitHub Actions Free$0/month
Total$5/month

Scaling path (as you grow):

MRRInfrastructure CostUpgrades
$0-1K$5/monthRailway $5 + all free tiers
$1K-5K$40/monthRailway $10 + Supabase $25 + BetterStack $8
$5K-20K$120/monthRailway $20 + Supabase $25 + BetterStack $15 + Sentry $26 + PostHog $20
$20K+$300-500/monthTime to hire someone who knows AWS

Real-World Example: My Recruiting SaaS Infrastructure

App: AI recruiting automation tool (2,100 monthly active users, $8.4K MRR)

Stack:

  • Compute: Railway Pro ($20/month) — Node.js API + background job worker
  • Database: Supabase Pro ($25/month) — 4.2GB PostgreSQL database
  • Errors: Sentry ($26/month) — 12K errors/month (mostly caught + handled)
  • Uptime: BetterStack ($8/month) — monitoring + logs
  • Analytics: PostHog ($20/month) — 2.4M events/month
  • CI/CD: GitHub Actions (free) — 40 deploys/month

Total infrastructure cost: $99/month

Percentage of revenue: 1.2%

Uptime last 90 days: 99.94% (one 5-minute outage from Supabase maintenance)

What this proves: You don’t need AWS to run a real SaaS business. You need tools that work and get out of your way.

5 Mistakes Solopreneurs Make with Infrastructure

1. Over-Engineering Before Product-Market Fit

You don’t need Kubernetes, microservices, or multi-region failover when you have 14 users. Start with Railway + Supabase. Refactor when scaling becomes a real problem (revenue > $20K/month).

Rule: If your infrastructure is more complex than your product, you’re doing it wrong.

2. Choosing “Resume-Driven Development” Tech

Don’t pick tools to pad your LinkedIn. Pick tools that let you ship fast and sleep well.

MongoDB because “it scales” when you have 200 users? PostgreSQL handles billions of rows. Kafka for event streaming when you process 100 events/day? Postgres does that too.

Contrarian take: Boring technology wins for solopreneurs. Use proven stacks, not bleeding-edge hype.

3. Ignoring Monitoring Until Something Breaks

Set up Sentry + BetterStack on day one. Not when you wake up to 15 angry customer emails because your app was down for 6 hours overnight.

Non-negotiable monitoring: Error tracking (Sentry) + uptime checks (BetterStack) + basic analytics (PostHog). These cost $0 until you’re making money.

4. Not Automating Deploys

If you’re manually SSH-ing into servers to deploy, you’ll break production. It’s not “if,” it’s “when.”

Minimum viable CI/CD: Push to GitHub → tests run → auto-deploy to staging → manual promote to production. Takes 20 minutes to set up. Saves you from disasters forever.

5. Paying for Tools You Don’t Use

Every month, audit your infrastructure costs. If you’re not actively using a tool, cancel it.

Example: I paid $29/month for PlanetScale for 4 months after migrating to Supabase. That’s $116 burned on a database I wasn’t querying.

When This Stack Doesn’t Work

Your app processes video/images/ML models: Railway/Render won’t cut it. You need GPU instances (RunPod, Modal, Replicate) or AWS EC2 G-instances. Budget: $50-200/month.

You’re serving users in China/Asia-Pacific and latency matters: Edge computing (Fly, Cloudflare Workers, AWS Lambda@Edge) becomes necessary. Budget: $20-80/month.

You’re past $50K MRR with a dedicated ops person: Time to migrate to AWS/GCP with proper autoscaling, multi-region, and reserved instances. Budget: $500-2K/month, but infrastructure is now a team sport.

Your app handles payments/healthcare/finance data: Compliance requirements (PCI-DSS, HIPAA, SOC 2) might force you to AWS/Azure with specific configurations. Talk to a compliance consultant before picking tools.

The Bottom Line

You can deploy production-ready micro-SaaS apps for under $15/month. Railway + Supabase + Sentry + BetterStack gives you 99%+ uptime, automatic deploys, error tracking, and monitoring — everything you need to run a real business.

AWS and enterprise infrastructure are amazing when you need them. At 47 users and $2K MRR, you don’t need them. You need tools that get out of your way so you can focus on building a product people want to pay for.

Save the DevOps deep dive for when you’re past $20K MRR and can hire someone to manage it. Until then, keep your infrastructure boring, automated, and cheap.

Pin It on Pinterest