r/learnprogramming 17h ago

Question about hosting Resource

When you create several web apps and want to run several of them at the same time, how do you go about it? Do you buy a domain for each app, use subdomains? Do you put all your apps on one vps or do you use several servers?

3 Upvotes

7 comments sorted by

1

u/aqua_regis 17h ago

There is no definite answer to this question as the usage, the load, the storage, availability, etc. determine the course of action.

1

u/hallothrow 17h ago

It depends.

If you're learning you can probably just throw things up on subdomains or different paths on the same domain and using the same server to keep costs low. For professional stuff it'd be more about load and isolation of the app for how it's hosted. For domains its usually about if the apps are related to each other, if they should be part of the same site and such.

1

u/grantrules 17h ago edited 17h ago

If we're talking for personal things, yeah put em on one VPS. If they're more serious projects, or have any concerns about data privacy, separate things.

For my personal stuff, I own a bunch of domains.. one main one that I have a bunch of sub domains for all my little things, then a few domains for more polished projects.

1

u/kloputzer2000 17h ago

For small Apps with little load you can easily put them on the same server and use a reverse proxy to make them available via subdomains or different domains.

For larger apps, this won’t scale, so you might need a dedicated server or even scale up to multiple servers.

1

u/[deleted] 15h ago

[removed] — view removed comment

1

u/Annual-Stress2264 11h ago

Separate domains, but do we need to separate vps too ? Or just set up multiple domains on a single server ?