Every team that ships software eventually asks whether to run its own servers or pay a platform to run things for it. Both answers are reasonable. The right one depends less on technology than on how much time, skill and attention you can give to operations.
In this guide, self-hosting means renting a VPS or dedicated server (or using your own hardware) and managing the operating system, web server, databases and backups yourself. Managed cloud means a platform that runs those layers for you, such as an app hosting platform or a managed database service, where you supply code and configuration.
By the end you will have a clear view of the trade-offs and a checklist you can apply to your own project.
Cost: the bill vs your time
Self-hosting usually looks cheaper on the invoice. A VPS with a given amount of CPU and memory tends to cost less than the same resources on a managed platform, because the platform charges for the work it does on your behalf. Provider prices change often, so compare current pricing pages rather than relying on old comparisons.
The invoice is only part of the cost. Self-hosting also costs:
- Time to set up the server, web server, TLS certificates, database and deploy process.
- Ongoing time for updates, backups, monitoring and fixing things when they break.
- The cost of incidents: downtime, data loss or a security breach you might have avoided.
A useful exercise is to estimate the hours per month operations will take, multiply by what that time is worth to you, and add it to the server bill. For a single developer, a few hours a month can outweigh the price difference. For a team with an operations specialist already on staff, it may not.
Control
Self-hosting gives you full control. You choose the operating system, versions, kernel settings, network layout and every piece of software. If you need an unusual database extension, a custom web server module or root access to debug a problem, you have it.
Managed platforms deliberately limit control to keep things reliable and supportable. You work within supported runtimes, configuration options and resource limits. For most web apps this is fine; for unusual workloads it can be a real constraint. Check the limits before you commit, not after.
Maintenance and on-call
When you self-host, you own every layer:
- Patching: operating system, web server, language runtime, database.
- Backups: scheduling, storing off-server, and testing restores.
- Monitoring: uptime checks, disk space, memory, certificate expiry, alerts.
- On-call: someone has to respond when the server fails at an inconvenient hour.
A managed platform takes on some of this, and exactly how much varies. Read what a provider actually manages. A platform might handle builds, TLS, isolation and backups but still leave application updates, external uptime monitoring and your own code's security to you.
Skills
Running servers well is a skill set: Linux administration, networking, firewalls, database tuning and incident response. If your team has it, self-hosting can be straightforward. If it doesn't, the learning curve is real and mistakes are often discovered at the worst moment.
Managed platforms lower the skill floor. They don't remove the need to understand your app, its environment variables, its database and its logs.
Compliance and data location
Regulations or customer contracts may require data to stay in a particular country, or require specific controls and audit evidence.
- Self-hosting lets you choose exactly where data lives and how it is handled, but you produce all the evidence yourself.
- Managed providers may offer certifications, data processing agreements and documented controls. Check which regions they run in and whether they let you choose.
Neither option is automatically compliant. Read the requirement, then check what each provider can prove.
Lock-in and portability
Lock-in happens when moving away would mean rewriting code or migrating data in proprietary formats. You can keep options open on either path:
- Package apps with a Dockerfile so they run the same way on a laptop, a VPS or a platform. See Docker for web apps.
- Use standard databases such as PostgreSQL, MySQL and Redis, which every host supports and which export with standard tools.
- Keep configuration in environment variables, not in a provider's proprietary settings.
- Own your domain and DNS separately from your hosting, so switching hosts is a record change.
Self-hosting has its own lock-in: to the knowledge in one person's head and to hand-configured servers nobody else understands. Write things down.
Comparison at a glance
| Factor | Self-hosting | Managed cloud |
|---|---|---|
| Monthly bill | Usually lower for the same resources | Usually higher, includes operations work |
| Your time | Setup plus ongoing maintenance | Mostly app work |
| Control | Full | Within platform limits |
| Reliability | Depends on your setup and skills | Depends on the provider, read what is included |
| Portability | High if documented | High if you use standard tools |
Step by step: a decision checklist
Work through these questions for your project:
- How many hours a month can you spend on operations, and what is that time worth?
- Does anyone on the team have server administration experience, and are they available when something breaks?
- Does the app need anything a platform can't provide, such as GPUs, root access or a specific kernel feature?
- What are the compliance requirements, and can each option meet them with evidence?
- What happens if the app is down for an hour, and who will notice first?
- How easily could you move later? Check for a Dockerfile, standard databases and environment-based configuration.
- What will this look like in a year if traffic or the team grows?
If most answers point to limited time and limited operations experience, start managed. If you have the skills, unusual requirements or a strong cost reason, self-hosting is a sound choice.
Hybrid options
You don't have to pick one approach for everything:
- Run apps on a managed platform and keep a self-hosted server for a special workload.
- Self-host the app but use a managed database, so the hardest data work is handled for you.
- Use a managed service for email and DNS while self-hosting the website.
- Put a CDN such as Cloudflare in front of either setup.
Hybrid setups are common and often the best fit. Keep the number of moving parts proportional to your team.
Common mistakes
- Comparing only the invoice. Fix: include your time and the cost of downtime.
- Self-hosting without tested backups. Fix: automate off-server backups and practise a restore. See Backups and disaster recovery.
- Assuming managed means everything is handled. Fix: read which parts the provider manages and which remain yours.
- Building on proprietary features without noticing. Fix: prefer standard databases, Dockerfiles and environment variables.
Security considerations
On a self-hosted server you are responsible for SSH hardening, firewalls, updates and intrusion detection; How to secure a cloud server has a checklist. On a managed platform, the provider secures the underlying servers, but your application code, dependencies, secrets and user accounts are still yours to protect. On either path, use two-factor authentication on every dashboard and keep secrets out of your repository.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Self-hosted site down after a reboot | Services not set to start at boot | Enable them in the init system (for example systemctl enable) |
| Server disk full | Logs or local backups growing unchecked | Set up log rotation and move backups off-server |
| Certificate expired | Renewal job failed silently | Monitor certificate expiry and test renewal |
| Managed bill higher than planned | Over-sized plan or idle resources | Review usage and right-size |
| Migration between hosts is painful | Configuration lives only on the old server | Move configuration into the repository and environment variables |
Frequently asked questions
Is self-hosting always cheaper?
The server bill usually is. The total cost, including your time and the risk of incidents, often isn't for small teams. It depends on your skills and how you value your time.
Can I start managed and move to self-hosting later?
Yes, if you keep your app portable: a Dockerfile or standard build, standard databases and configuration in environment variables. The reverse move works the same way.
Is a VPS self-hosting?
Yes. The provider runs the physical hardware, but you manage everything from the operating system up. See VPS vs cloud vs dedicated servers.
Next steps
Pick the option that matches the time and skills you actually have today, keep your app portable, and revisit the decision as the project grows.
- What is cloud hosting? A plain-English guide
- VPS vs cloud vs dedicated servers
- How to secure a cloud server
- Deploy your first app
- If you want the managed route for web apps, compare plans on Launchpad




