I get asked this constantly: which architecture actually costs less month to month? The answer depends on your workload shape, not on which vendor's landing page you read last. Let's break down compute, egress, and scaling expenses at three realistic tiers so you can make an informed call.
The three tiers we'll compare
I'm using workload profiles I see every week in support tickets and client projects.
Tier 1: Hobby or low-traffic side project
A few hundred requests per day, minimal CPU burn, maybe a webhook listener or a personal API. Think a Discord bot, a form processor, or a Telegram notification service.
Tier 2: Small production app
Steady traffic—10,000 to 50,000 requests per day—with moderate compute needs. A SaaS dashboard, a booking system, or a content API serving a mobile app. You care about uptime but you're not Netflix.
Tier 3: Mid-scale production
Hundreds of thousands of requests daily, real CPU work (image processing, PDF generation, API orchestration), and occasional spikes. This is where architecture choices start to hurt if you get them wrong.
Compute costs: idle time is the dividing line
Serverless bills you per invocation and per millisecond of execution. A VPS bills you for the entire month whether your CPU is at 2% or 90%.
For Tier 1, serverless is almost always cheaper. If your function runs 500 times a day and each invocation takes 200ms, you're paying for roughly 100 seconds of compute per day. Most serverless platforms have free tiers that cover this entirely. A small VPS, even the cheapest one, runs you a few dollars a month for capacity you barely touch.
The math flips at Tier 2. When you're handling 20,000 requests a day with an average execution time of 500ms, you're consuming real compute hours. Serverless starts to add up—especially if your function needs more than the base memory allocation. A VPS with 2 vCPUs and 2-4 GB of RAM typically costs less per month than the equivalent serverless bill once you cross a sustained usage threshold. The exact crossover depends on your function's memory footprint and how bursty your traffic is.
By Tier 3, a well-tuned VPS almost always wins on raw compute cost. Serverless pricing is linear: double your traffic, double your bill. A VPS gives you a fixed ceiling. If you can keep your application running efficiently and handle the traffic with one or two instances, your monthly cost stays flat even as request volume climbs.
One caveat: cold starts. If your serverless function sleeps between invocations and your framework is heavy, users will notice the latency. Keeping functions warm costs extra, either through scheduled pings or by paying for provisioned concurrency. That eats into the cost advantage fast.
Egress fees: the silent budget killer
Data transfer out is where serverless platforms make a lot of their margin. VPS providers usually bundle a generous egress allowance—often 1 TB or more per month—before charging overage fees. Serverless platforms start charging per gigabyte much sooner, and the rates are higher.
For Tier 1, egress is negligible. You're sending back JSON payloads measured in kilobytes. Even a few hundred requests a day won't move the needle.
At Tier 2, pay attention. If each response averages 50 KB and you're serving 30,000 requests a day, you're pushing about 45 GB per month. On a VPS, that's well within the included bandwidth. On serverless, you're paying per-GB fees that add up quickly—sometimes doubling your bill.
Tier 3 is where egress becomes a line item you can't ignore. Serving images, PDFs, or even chunky API responses to hundreds of thousands of requests can easily push you past 500 GB per month. The per-GB cost on serverless platforms is often 5x to 10x higher than what you'd pay for a VPS or a CDN. If your workload is egress-heavy, a VPS with a CDN in front of it will save you a lot of money.
One trick: offload static or cacheable content to object storage with a CDN. Both architectures benefit, but it's especially important for serverless where every byte out of the function costs you.
Scaling: when auto-scaling actually costs more
Serverless scales automatically. Sounds great until you realize that every new concurrent invocation spins up another billable execution context. If you get a traffic spike—say, 1,000 requests in ten seconds—serverless handles it without you lifting a finger. You also get a bill for 1,000 parallel invocations.
A VPS doesn't auto-scale by default. You handle the spike with the CPU and memory you already paid for, or your response times degrade, or the server falls over. To scale a VPS horizontally, you need a load balancer and multiple instances, which means more monthly cost and more ops work.
For Tier 1, you probably don't care. Spikes are rare and your baseline is so low that even a 10x burst stays inside free-tier limits.
At Tier 2, it depends on traffic shape. If your app sees steady, predictable load, a single VPS is simpler and cheaper. If you get regular spikes—maybe a daily email campaign that drives a burst of signups—serverless absorbs that elasticity without you provisioning extra capacity. The cost trade-off is close; you're picking between paying for headroom you don't always use (VPS) or paying per-spike (serverless).
Tier 3 workloads need proper autoscaling either way. At this point you're probably looking at managed Kubernetes, container orchestration, or multiple VPS instances behind a load balancer. Serverless still scales automatically, but the bill during peak hours can shock you. I've seen clients hit their monthly serverless budget in a single weekend because a post went viral. A VPS cluster caps your cost at the number of instances you're running, even if each instance is slammed.
Here's the piece people miss: scaling isn't just about handling load. It's about cost predictability. Serverless costs are variable and can spike unpredictably. VPS costs are fixed; you know your monthly number even if performance degrades under load.
Hidden costs: ops time and tooling
Serverless offloads server management, patching, and monitoring to the platform. You deploy code and walk away. The trade-off is vendor lock-in, more complex debugging, and sometimes a need for third-party observability tools that cost extra.
A VPS means you're patching the OS, configuring firewalls, setting up monitoring, and handling deployments yourself. That's either your time or someone else's salary. For a solo developer or a tiny team, that ops overhead can outweigh the raw compute savings of a VPS.
At Tier 1, serverless almost always wins on total cost of ownership. You don't want to spend Saturday morning applying kernel patches for a side project.
Tier 2 is a toss-up. If you already know how to deploy and manage a VPS, the ops burden is low. If you're learning as you go, serverless buys you time to focus on product.
By Tier 3, you're paying for ops help either way. The question becomes whether the managed-service premium of serverless is worth it compared to hiring a part-time DevOps contractor or using a managed VPS provider.
Real-world decision tree
Pick serverless if: - Your traffic is spiky and unpredictable. - You want zero ops overhead and can accept vendor lock-in. - Your workload is event-driven and naturally fits a function-per-task model. - Egress is low (mostly JSON, small payloads).
Pick a VPS if: - Your traffic is steady or grows predictably. - You're comfortable managing a server or paying someone who is. - Your workload is egress-heavy (serving files, images, large API responses). - You want cost predictability and control over the full stack.
In practice, a lot of architectures end up hybrid: serverless for background jobs and webhooks, a VPS or container cluster for the main application and API. That gives you the elasticity of serverless where it matters and the cost efficiency of a VPS for sustained load.
What the bill actually looks like
At the end of the day, your invoice depends on traffic shape more than raw volume. Bursty, unpredictable workloads favor serverless because you only pay for what you use. Steady, sustained load favors a VPS because you're buying capacity in bulk.
Run the math for your specific case: estimate your requests per day, average execution time, response size, and how often you spike. Plug those numbers into a pricing calculator for both models. The difference will be clearer than any generic comparison.
And remember: the cheapest architecture is the one you can actually deploy and maintain without losing sleep.
