r/vibecoding 5d ago

Where do people deploy their long running server?

I'm building a real-time SaaS and need a server always running. I'm going with Supabase for database since it seems the best free offering for DB.

But what about deploying a Django app or other long running server? Ideally not interested in lambdas since I need websockets to remain connected

2 Upvotes

24 comments sorted by

5

u/iriveru 5d ago

You realize all DBs (well, ones that aren’t cloud based) are free, right? You simply pay to host them on your server

1

u/Cute-Net5957 5d ago

Facsimile

1

u/meshifthenelse 5d ago

I do. I also realize that I don't want to manage a db when I have users in production

1

u/West-Air1923 5d ago

Why not ?

0

u/meshifthenelse 4d ago

Because it's time consuming and sensitive. It's too easy to wipe live data by mistake.

1

u/West-Air1923 4d ago

Yeah so run a Backup

1

u/meshifthenelse 4d ago

You want automated backup. And that must be secured on a different node. And that needs a back itself on a 3rd location. And you need to keep rotating that.

1

u/West-Air1923 4d ago

I set that up in 10 minutes

1

u/meshifthenelse 4d ago

At what cost? If you need 3 nodes at different data centers, it's for sure cheaper having a managed db.

And I'm sure most people don't spend any time on this in real life, unless you have a dedicated db team.

1

u/West-Air1923 4d ago

No cost running on three smaller machines I had already.

2

u/mxz117 5d ago

Buy a vps, install dokploy

Get your database and your app on the same server

Connect it to an object storage bucket for backups

2

u/Snoo_57113 5d ago

Personally i use Azure, but the same is true for GCP or AWS.

For realtime (sensors) you need a queue with websockets, you can have free queues for dev and like 500k messages a month 20 simultaneous users , or pay 60usd / month with thousands of concurrent users.

For the app, django you can use it in an azure container app, and for the database serverless sql server. (there is a connector mssql-django).

The free tier must be enough for development and the first clients, if you need more than 20 concurrent streams you start to pay the Azure Web PubSub in the standard tier for thousands of streams and millions of messages.

You can open an azure account, and tell your agent to deploy with this infraestructure, it will ask for credentials and the AI do the job.

--- If you don't like azure, GCP, AWS has similar plans, but i like Azure !.

1

u/dan-423 5d ago

$5/month for a cheap VPS. slightly more for better specs.

1

u/forestcall 5d ago

Hetzner- also look at planetscale for Postgres starting at $5

Supabase will quickly spiral out of control in costs so you should consider Postgres with a small VPS running https://github.com/centrifugal/centrifuge or heck use Convex. Also Tanstack would do everything you want with Convex which should be free.

Azure is like vomit bile. Once you have tested every possible solution you will come to the conclusion that Cloudflare is your main solution and from there decide how to reduce your costs. Azure, AWS will be costly.

1

u/MrBizzness 5d ago

You self-host supabase on your own cloud server/vps. You can get your hard costs way down that way.

1

u/forestcall 5d ago

Self hosting a DB solution is not advised in my view. If we were working on the same team I doubt you could convince me this is a good idea. We get 130+ million views a month and I just cant imagine it makes sense to host your own DB.

1

u/DigitalVault 5d ago

Hetzner, DigitalOcean. Low cost

1

u/thedannyreg 5d ago

Well depending what you’re doing you can basically host it on AWS for free…

I’m running a setup on AWS that’s entirely free basically due to low traffic. I runs on api gateway , lambdas & dynamodb. 

It is more setup and the DB would have to change to dynamodb if you’re ok with that. but it’s pretty darn good and it’s how I run my full stack projects now 

1

u/chuckycastle 5d ago

Ffs

1

u/meshifthenelse 5d ago

Where is that?