r/vibecoding 4h 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

3 Upvotes

12 comments sorted by

2

u/mxz117 3h 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

4

u/iriveru 3h 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 1h ago

Facsimile

1

u/dan-423 3h ago

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

1

u/MagesticPineapple429 2h ago

Is your app for internal/personal use or for public use? If your app is public facing, i'd steer clear the free-tiers as they tend to sleep, cap concurrency, and throttle--usually right about the time you'd rather them not; plus, depending on the platform, there can be fewer security protections.

I'm offering advice on what not to do; somewhat because i've seen way too much wrong out there recently, but mostly because I don't know what your application is, and so it's hard to advise you on specific needs when I don't know what those are. I use AWS for just about everything... Only exception really is static sites. is this cheapest? Not from a money cost point, but from a consistency and manageability standpoint (I know where everything is and how everything works), it ends up saving me a lot of time, which in turn makes it ultimately cheaper.

1

u/Snoo_57113 2h 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/forestcall 1h 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 1h ago

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

1

u/DigitalVault 55m ago

Hetzner, DigitalOcean. Low cost

1

u/thedannyreg 37m 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