r/Hosting • • 6d ago

Self hosted VPS vs Serverless / Cloud / AWS

I have to host a website that will be used by a couple of thousand people, but I can't decide if I should use a serverless/cloud option like AWS or Supabase, or if I should go and buy a dedicated virtual private server and manage it by myself.

Some years ago, I would definitely go with the first option because I don't want to deal with all the server configurations, security, and backups by myself. But now, in the AI era, I think that these processes have become a lot simpler, and I can trust the work of the AI more when setting up the security on my server.

I could save the cloud/serverless fees and subscriptions. The only thing that I'm still wondering about is scalability and maintenance, especially if the server goes down. With a serverless option, there is someone monitoring and fixing. On the VPS, I should do this by myself. What do you think?

14 Upvotes

21 comments sorted by

9

u/No-Garden-Party 6d ago

A couple of thousand users is small enough that a single $10 to $20 VPS will handle it fine, so the real question is whether you want to be the one fixing it at 2am, because AI can help you set up a firewall and SSH hardening, but it won't notice that your disk filled up or your SSL cert didn't renew. If you go VPS, the minimum I'd set up on day one is automatic security updates, a free uptime monitor that pings your phone, and nightly database backups to storage off the server, and if any of that sounds like a chore, a managed database like Supabase paired with a cheap VPS for the app is a nice middle ground, since the data is the part that hurts most to lose.

1

u/CodeTheStars 6d ago

If you know you need resources for a long time and can commit to one or three year spend. Anything on AWS is the cheapest. Whether or not you go with a simple EC2 box and do it yourself. Or run containers in Fargate for serverless auto-scale.

Depending on your scale needs I’d probably do a simple EC2 box and use an external monitor to alert you if it’s down.

For that scale, couple thousand users my low budget would be $60 a month on AWS for all resources. Unless you need something weird like multiple terabytes of storage.

What’s the stack? Node? PHP?

1

u/CollegeElectricalKid 6d ago

Be careful trusting AI fully on the security side. It's great for writing configs, but I've seen it confidently suggest opening ports or leaving defaults that you really shouldn't. Use it to go faster, but understand every change before you paste it in.

1

u/drzamamina 5d ago

yeah it loves to confidently open 0.0.0.0/0 on your security groups to fix connection errors. don't let it touch your network configs unless you know what you are looking at.

1

u/horizon_games 6d ago

Is the website static? For a couple thousand users I'd just throw it on Github Pages tbh.

If it's dynamic, with a good internet connection you could host a couple thousand users on a Raspberry Pi. Don't over estimate the "scaling" you'll need.

Either way VPS all the way, but learn and don't just have AI "harden" the server then be surprised when something goes wrong. Especially when basic security isn't THAT hard to learn and setup.

1

u/kai-zaphosting 6d ago

A couple thousand users is small enough that a single VPS handles it fine, so scalability is probably the least of your worries. The part I'd think harder about is trusting AI with the security setup. It's great at spitting out a hardening checklist, but if you can't tell what a given line actually does, you won't notice when it's wrong. And you're the one on the hook for backups and the 3am site-is-down alert, while routine OS patching is mostly automatic with unattended-upgrades on Debian/Ubuntu, which installs security updates by itself.

CodeTheStars's point about one simple box plus an external monitor is right for this size. I'd add backups on top, since that's the thing I see skipped most often: a nightly DB dump copied off the server, and one test restore before you ever need it.

If it's mostly a static frontend talking to an API, putting the frontend on managed static hosting and using a managed database takes away most of the babysitting while keeping the bill low.

1

u/jboogyoogy 5d ago

Honestly for that many users i would focus much more on reliability than on price
Ai can simplify server management but it will not replace the monitoring, backups or the incident responses
A managed cloud option might be worth the extra cost

1

u/PermanentLiminality 5d ago

I would probably use a $5 VPS. Without knowing the processing requirements, it is hard to know what this site will need.

1

u/Veduis 5d ago

if the site has accounts or payments, start with supabase or a managed host. keep the vps for things that can fail without hurting anyone. the saved monthly fee can disappear fast during one bad weekend.

1

u/716green 5d ago

layerbase for the database hosting. Email support. They have app hosting too, it's just invite only right now.

The whole gimmick is that it is flat fee monthly so your database will cost you either $0, $5 or $15 and the app hosting will cost you either $0, $10, or $30 depending on what you need. Everything is included and there's no bandwidth charges so it's like all the bells and whistles of supabase or neon (including branching) but for the cost of a hetzner server

1

u/Pure_External955 5d ago

for a couple thousand users, i'd lean toward managed cloud hosting unless you're comfortable handling server maintenance yourself

1

u/unpdigital 3d ago

I don't like could computing which is not done by myself.
AWS is just too pricey to use.

For a small website you can use a shared server, Ethernetserver i.e. as many offer about 3G BRAM.
Small being 100 to 400 Visitors a day not too heavy on pictures and videos.

1

u/Arun_Kumar0057 3d ago

A few thousand users doesn't necessarily mean you need serverless infrastructure. Concurrent users and peak traffic are more important when sizing a server.

I'd start with a VPS and run some load tests before committing to a more complex cloud setup.

Also, consider how much downtime your application can tolerate. That should help you decide whether managing a VPS yourself is worth the cost savings.

1

u/Country-City 3d ago

a couple of thousands users is not a scaling problem, so the real trade is who gets the 2am page. serverless still goes down, and the "someone monitoring it" is often just an auto-restart and a status page - you still need backups and a monitor either way. i would not let an llm own the firewall without reading every line it writes. If you do want a boring self-managed box, cherry servers has small cloud vps plans that are plenty for this size; just backs off the server and an uptime check on your phone before you cut over.

1

u/Puzzleheaded-Camp-16 2d ago

Couple thousand users is vague metrics what do they do? If its a webpage to read content yes vps is fine hide static behind varnish and all set. If they do stuff all day long like in a app then no they can generate millions of requests daily. Esentially if read heavy yes if write heavy no.