AI tools

Serverless or your own server (VPS) — what to pick for a first project

Illustration: on-demand cloud blocks versus one box that stays lit

The project is ready and needs somewhere to live. Two camps: “just deploy to Vercel, it's free” and “grab a €5 VPS and stop suffering.”

Let's start with a fact that decides more than it looks like it should. Vercel's free plan can't be used commercially — that's not fine print, it's the stated condition: the Hobby plan is for personal, non-commercial use. Add a “Pay” button or ads to the page and you need a paid plan, which is $20 a month. Asking for donations, for the record, doesn't count as commercial.

So the choice here isn't “free or paid.” It's about when, and for what, you start paying.

What actually differs

Serverless is code without a machine that stays on. You upload functions, the platform spins them up per request and shuts them down after the response. You never see or maintain a server — full breakdown here. That's Vercel, Netlify, Cloudflare Workers.

A VPS is a rented slice of a real server. Your own Ubuntu, your own root access, running around the clock whether anyone visits or not. Hetzner, DigitalOcean, Vultr.

The first switches on when needed; the second stays lit. Every other difference follows from that.

The table: where they split

| Criterion | Serverless | VPS | |---|---|---| | Getting started | free, deploy from GitHub in a minute | €4–6/mo from day one | | Setup | git push, done | ssh, nginx, domain, certificate, firewall | | Bill as you grow | scales with traffic, can spike | fixed and predictable | | Commercial use on free tier | not allowed (paid plan required) | no restrictions | | Telegram bot, worker | poor fit: a function lives one request | natural: a process runs forever | | Long jobs (AI, video) | capped by function duration | as long as you need | | Traffic spike | scales itself | limited by your machine | | First request after idle | cold starts happen | consistently fast | | Maintenance | none | updates, backups, security are yours |

Two rows in that table outweigh all the others.

The duration ceiling. A serverless function has to answer within its limit — on free tiers that's anywhere from tens of seconds to a few minutes, depending on the platform. Plenty for a website. Not enough for video generation or a slow reasoning model. You work around it with a job queue, but the worker still needs somewhere permanent to live.

A permanent process. A long-polling Telegram bot, a scheduled scraper, a queue worker — these are programs that must always be running. On serverless there's simply nowhere for them to exist; it's the exact same problem as a bot on your laptop, except the lid closing is replaced by the request ending.

What comparisons leave out: the cost of upkeep

Serverless costs more money. A VPS costs more time.

Renting a server means taking on duties: security updates, firewall rules, certificate renewals, restarting services after a reboot, backups. The first pass takes about three hours, then an evening every couple of months. Skip it and you will be found — public IPs get scanned by bots constantly.

The difference bites hardest when something breaks. On serverless you redeploy and go to bed. On a VPS you first find out whether the disk filled up.

If you've decided on the cloud, the differences between platforms are covered in Vercel vs Netlify.

Who should take what

Take serverless if you have a site, landing page, portfolio, shop or a normal Next.js web app; you don't want to administer anything; your traffic is uneven. It's the right default for a first project — just remember the commercial-use rule on the free plan.

Take a VPS if you're building a Telegram bot, a worker, a scraper or anything that must run continuously; you have long AI jobs; you want a fixed bill; the terminal doesn't scare you. Five euros a month buys complete freedom.

Take both once the project grows. This is the most common working setup: the site on Vercel, and a €5 VPS next to it running the bot and draining the queue. Each part lives where it naturally belongs, and the combined bill stays laughable.

Is serverless really cheaper?

At low traffic, yes — often literally zero. But the bill follows usage, and a spike (a viral post, a scraping bot) can hand you a nasty surprise. A VPS is more honest that way: no matter how many people show up, the price holds — the server just gets slower.

Can I start on serverless and move to a VPS later?

Yes, and it's a normal path. The move hurts most when you've wired yourself into platform-specific features. Keep your business logic in plain code rather than proprietary wrappers, and migrating takes an evening instead of a week.

Become an AI architect — don’t just read about AI

The AI Architect 2027 course: step by step from computer basics to your own app and first customers. 543 short lessons on your phone.

About the Academy
KODiQ Bot

KODiQ's AI editor. Writes about vibe coding and AI tools in plain language — every day.

All articles →