

Engineering
Best Serverless Platforms for a Startup MVP
Serverless is sold to founders as hosting you never think about: no servers, a free tier to launch on and a bill that starts at zero. Six platforms make that promise and mean different things by it. One bills only for CPU time, another bills every millisecond you spend waiting on the database, and the free tier you build on may not permit a commercial product at all. Here's how they compare for a real SaaS MVP, bill included.
What are the best serverless options for a startup MVP?
For a SaaS MVP built on Next.js, Vercel Functions is the best serverless option in 2026; pick Cloudflare Workers for cheap, high-volume APIs, AWS Lambda for event-driven work inside AWS, and Google Cloud Run when your back end isn't JavaScript. Netlify Functions and Supabase Edge Functions do narrower jobs well: light APIs beside a static site, and glue code beside a Supabase database.
If you're deciding where the whole app lives rather than its functions, start with Vercel vs AWS for a SaaS MVP.
How do the six serverless platforms compare?
Prices are in USD as of November 2026, from each vendor's pricing and limits pages; Lambda's rates are for x86 in London, Cloud Run's for Tier 1 regions such as Belgium (London is in the pricier Tier 2). Vendors change pricing often, so check before you commit.
| Runtimes | Free tier | Paid entry price | Max execution time | Cold starts | Best for | |
|---|---|---|---|---|---|---|
| Vercel Functions | Node.js, Bun, Python, Go, Ruby, Rust, containers | Hobby: 4 CPU-hours, 360 GB-hours, 1M invocations a month; non-commercial use only | Pro: $20/month, including one deploying seat and $20 of usage credit | 300 s default; 800 s on Pro (30 min in beta) | Reduced by pre-warming and bytecode caching | Next.js apps and I/O-heavy APIs |
| Cloudflare Workers | JavaScript, TypeScript, Python, Rust; Wasm | 100,000 requests a day; 10 ms of CPU per request | $5/month minimum, including 10M requests and 30M CPU-ms | No wall-clock limit on HTTP; CPU 30 s default, 5 min max | Largely avoided: V8 isolates, not containers | High-volume APIs and edge logic |
| AWS Lambda | Node.js, Python, Java, .NET, Ruby; Go and Rust via OS-only runtime | Always free: 1M requests and 400,000 GB-seconds a month | No plan fee: $0.20 per million requests + $0.0000166667 per GB-second | 15 min | Yes; paid provisioned concurrency avoids them | Event-driven jobs inside AWS |
| Netlify Functions | TypeScript, JavaScript, Go | 300 credits a month, hard cap | Personal $9/month (1,000 credits); Pro $20/month (3,000) | 60 s; background functions 15 min | Yes | Light APIs beside a static site |
| Google Cloud Run | Any language, in a container | 2M requests, 180,000 vCPU-seconds, 360,000 GiB-seconds a month | No plan fee: $0.000024 per vCPU-second, $0.0000025 per GiB-second, $0.40 per million requests | 5 min default; 60 min max | Yes, when scaling from zero | Python, ML and container back ends |
| Supabase Edge Functions | TypeScript on Deno; Wasm | 500,000 invocations a month | Pro plan ($25/month) includes 2M, then $2 per million | 150 s on Free, 400 s paid; 2 s of CPU | Possible, per Supabase | Webhooks beside a Supabase database |
Two columns decide most choices. Max execution time sets which features fit at all: 60 seconds suits an API call, not a PDF export. And billable time differs: Vercel bills Active CPU plus memory while an instance is busy, Cloudflare bills CPU time only, and Lambda, Netlify and Cloud Run bill the whole time a request is in flight, waiting included. SaaS requests mostly wait on Postgres or an API, so that gap grows with traffic.
Which serverless platform is cheapest for an MVP?
At MVP traffic every option costs well under $50 a month: AWS Lambda is cheapest on paper, Cloudflare Workers pulls ahead as traffic grows, and Vercel costs most but includes the CDN, previews and deploy pipeline you'd otherwise build.
Take one realistic workload: 3 million requests a month (about 100,000 a day, a B2B MVP with a few hundred daily users), averaging 250 ms each, 50 ms of it CPU work, the rest waiting on Postgres and APIs. That's 41.7 hours of CPU and 208.3 hours of request time. Functions run in London beside the database, on Vercel's default 2 GB and a 1 GB Lambda, with no two requests sharing an instance, which slightly overstates Vercel.
| Platform | Compute | Requests | Fixed fees | Monthly total |
|---|---|---|---|---|
| Vercel Pro, London | 41.7 CPU-hours × $0.177 = $7.38, plus 2 GB × 208.3 hours = 416.7 GB-hours × $0.0146 = $6.08 | 3M × $0.60 per million = $1.80 | $20 platform fee, whose $20 credit absorbs the $15.26 of usage; $20 Flat Rate CDN tier | $40.00 |
| Cloudflare Workers Paid | 150M CPU-ms − 30M included = 120M × $0.02 per million = $2.40 | 3M, inside the 10M included: $0 | $5 monthly minimum | $7.40 |
| AWS Lambda, London (x86) | 750,000 GB-seconds − 400,000 free = 350,000 × $0.0000166667 = $5.83 | 2M beyond the free million × $0.20 per million = $0.40 | None | $6.23 |
The totals hide three things:
- Only Vercel's total is all-in. It includes the CDN, HTTPS, preview deployments and builds. Lambda's $6.23 is compute alone; hosting, a CDN, logging and CI/CD are extra AWS services.
- Lambda's free tier is doing the heavy lifting. At 6 million requests the same arithmetic gives Lambda $19.33 (1.1M GB-seconds × $0.0000166667 = $18.33, plus $1.00 of requests) and Workers $10.40 ($5 plus 270M CPU-ms × $0.02 per million).
- Vercel's CDN tier is the step to watch. Static files and function calls all count as CDN requests. With Flat Rate CDN switched on in billing settings, Pro includes 1 million a month; exceed that over a billing cycle and you move to the $20 tier (10 million requests) from the next one. Without it, CDN requests bill per unit at regional rates.
The rates are in Vercel's Fluid compute pricing docs and on AWS's Lambda pricing page. A $34 monthly gap is small next to the setup time a do-it-yourself stack costs.
What will surprise you on the serverless bill?
Rarely the per-request rates; usually the free-tier rules and the defaults nobody changes.
- Vercel Hobby isn't for commercial products. Vercel's terms limit it to "personal or non-commercial use", and a Hobby team that exceeds its allowance is paused, with visitors getting a 503, rather than billed.
- Vercel's default region is Washington, D.C. With a London database, every
query from
iad1crosses the Atlantic. Switch tolhr1: Active CPU rises from $0.128 to $0.177 an hour, which is worth paying. - Lambda bills initialisation. Duration charges cover your initialisation code as well as the handler, so heavy imports cost money on every cold start.
- New AWS accounts start on a clock. Since 15 July 2025 they get $100 in credits, plus up to $100 more for set activities, and the Free plan ends after six months or when the credits run out. AWS then suspends the account unless you upgrade.
- Netlify bills deploys. Each production deploy costs 15 credits, so 20 deploys use the Free plan's whole 300-credit month, and when credits run out every project is paused behind a "Site not available" page.
What about cold starts and timeouts?
Timeouts break features while cold starts only slow them, so check your longest job against each platform's ceiling before worrying about the first request after a quiet spell.
Cloudflare Workers largely avoid cold starts by running code in V8 isolates, which Cloudflare says start about a hundred times faster than a Node process. Vercel softens them with pre-warming and bytecode caching, though a production function left uncalled for two weeks is archived, and its next cold start can be at least a second longer. Lambda, Netlify and Cloud Run have them when scaling from idle. On a B2B dashboard, an occasional slow first load rarely loses a customer.
Timeouts are hard walls, from Netlify's 60 seconds to Cloud Run's 60 minutes (see the table above). A report export, a long chain of LLM calls or a bulk import shouldn't run inside a request at all.
When is serverless the wrong choice?
When the work outlives a request, holds a connection open, runs flat out all day or needs a GPU.
- Long-running jobs. Video processing, big exports and multi-step AI pipelines belong in a queue, with the UI polling for status.
- WebSockets and realtime. Vercel Functions gained WebSockets in October 2026, under the same limits as other invocations, but for chat or live collaboration at scale a long-running server or managed realtime service is simpler.
- Constant heavy processing. Per-invocation pricing is a bargain for spiky traffic and a premium for a worker that's busy around the clock.
- Big ML workloads. Memory tops out at 128 MB per Workers isolate, 256 MB on Supabase, 4 GB on Vercel and 10 GB on Lambda, and only Cloud Run here lets you attach a GPU. For an MVP, call a model API instead.
The alternative is a container host such as Railway, Render or Fly.io: a long-lived process, billed for the time it's up, with no cap on how long a worker runs. Plenty of products use both.
How do you avoid serverless lock-in?
Write your back end as standard web handlers in TypeScript, keep your data in Postgres, and wrap each platform's proprietary services in a thin adapter you could rewrite in a day.
Lock-in rarely comes from the runtime. Code written against the web-standard
Request and Response objects moves between these platforms with little
change, and Hono, covered in NestJS vs Express vs
Fastify, runs on Workers, Vercel,
Lambda, Deno and Node. The sticky parts are platform key-value stores, queues,
cron syntax and IAM, so keep them behind interfaces and ship one deployable app,
not dozens of single-purpose functions.
What about the database?
Use a Postgres host built for bursts of short-lived connections, Neon or Supabase through their poolers, and Upstash if you need Redis.
Functions scale out fast, each instance opening its own connections, which can exhaust a database's connection limit. Neon's pooled hostname and serverless driver, Supabase's transaction-mode pooler and Cloudflare's Hyperdrive solve that. We compare the two in Neon vs Supabase vs AWS RDS. For caching or rate limiting, Upstash Redis gives you 500,000 commands and 250 MB free a month, then $0.20 per 100,000 commands.
Our default: Next.js on Vercel, with a queue for long jobs
Our default hasn't changed: Next.js on Vercel, with Postgres (often Supabase), Clerk, Stripe and Resend, the SaaS MVP tech stack we ship with. The back end starts as Next.js API routes in the same deploy, so Vercel Functions come with the app, and Pro's $20 credit absorbs a busy MVP's function usage.
When background work outgrows a request, we add a job queue (Inngest or Trigger.dev are the least-effort options that keep you on Vercel) and run the work asynchronously with a status the UI can poll. If one workload outgrows even that, we move just that workload to AWS and leave the web app where it is.
We deviate in three cases:
- Cloudflare Workers for a high-volume API or edge logic (webhooks, redirects, a busy public API), written in Hono so it stays portable.
- AWS Lambda when the client already runs on AWS, a buyer needs data inside their own AWS account, or the work is event-driven: files landing in S3, queue messages, jobs of up to 15 minutes.
- Google Cloud Run for a Python or ML back end, a custom container such as a headless-browser scraper, or requests that run for up to an hour.
Wiring these together is part of our DevOps and cloud infrastructure work, and because running costs are known up front, they never get in the way of a fixed-price quote.
Frequently asked questions
Is Vercel's free plan enough for a startup MVP?
For building and private testing, yes; for a product you charge for, no, because Vercel's terms limit the Hobby plan to personal or non-commercial use. Its monthly 4 CPU-hours, 360 GB-hours and 1 million invocations easily cover development. Move to Pro before your first customer signs up.
How much do Supabase Edge Functions cost?
500,000 invocations a month are free; the Pro plan ($25/month) includes 2 million, then $2 per million, with no charge for execution time. The catch is the limits: 256 MB of memory, 2 seconds of CPU per request, and 150 seconds of wall-clock time on Free or 400 on paid plans. Our Supabase pricing guide covers the rest of the bill.
Is AWS Lambda still free after the 2025 Free Tier change?
Yes: 1 million requests and 400,000 GB-seconds a month remain always free, including for accounts opened on or after 15 July 2025. What changed is the wrapper. New accounts get $100 in credits, and up to $100 more, in place of the old 12-month offers. Use the Paid plan for production.
Can you run a Next.js app on Cloudflare Workers?
Yes, but less smoothly than on Vercel: Cloudflare's recommended route, vinext, is in beta as of November 2026. Cloudflare lists the App Router, server actions, ISR and middleware as supported, and advises a compatibility check before production. We'd keep a Next.js MVP on Vercel and use Workers for the API or edge pieces.
Want serverless infrastructure sized to your MVP?
The right platform depends on your longest job, your traffic and where your data has to live. To map that for your product, including what shouldn't run in a function at all, book a free scoping call. We'll spec the infrastructure and quote the build fixed-price, so hosting is a known number before you commit.






Leave a comment