Shared vs. VPS vs. Dedicated vs. Cloud Hosting
Compare the four main hosting types by isolation, control, cost behavior and upkeep, and pick the one that fits your site.
Key takeaways
- Shared hosting is the simplest and cheapest option, with the least control and the most neighbors.
- A VPS offers reserved or capped resources and administrative access, but unmanaged plans make you the system administrator.
- Dedicated servers remove virtual neighbors and suit steady, heavy or specialized workloads.
- Cloud hosting trades predictable bills for flexibility, and needs design work before it scales.
- Whether a plan is managed often matters more than which of the four labels it carries.
The four common hosting types differ in how much of a computer you get and who looks after it. Shared hosting gives you a slice of a crowded server with the upkeep done for you. A virtual private server (VPS) gives you a walled-off virtual machine. A dedicated server is a whole physical box. Cloud hosting rents resources you can add or remove on demand.
For a new small site, shared or a managed platform is usually enough. Move up when you hit a limit you can name, such as software you cannot install or traffic the plan cannot carry.
Shared hosting
On shared hosting, one operating system serves many customer accounts. Each account gets a folder, some databases and a control panel. The provider patches the system, runs the web server and decides which software versions exist.
The strengths are real. There is little to configure, the price is low and the common tools for blogs and small business sites work out of the box.
The weaknesses follow from the sharing. You cannot change system settings or install arbitrary programs. Limits on processor time, memory and simultaneous processes are enforced firmly. Good providers isolate accounts so one customer cannot read another's files and a runaway script cannot consume the whole machine, but how well they do it varies.
Virtual private servers
A VPS is a virtual machine: software called a hypervisor divides one physical server into several independent computers, each with its own operating system. You get an allotment of processor cores, memory and disk, and usually the administrator (root) account.
You can now choose your web server, install a queue or a custom runtime, tune the database and open specific ports. A neighbor's busy site has much less effect on you, though some providers oversell processor time, so "shared" and "dedicated" cores are worth distinguishing in the plan details.
The catch is responsibility. On an unmanaged VPS, nobody applies security updates, configures the firewall or notices a full disk except you. If that sounds unfamiliar, read about SSH, which is how you will administer the machine, and firewalls before you buy. Containers are a related but lighter form of isolation, compared in virtual machines vs. containers.
Dedicated servers
A dedicated server is one physical computer rented to one customer. There is no hypervisor overhead unless you add one, and no one else competes for its disks or processors.
It suits steady, demanding workloads, such as a large database that needs consistent disk performance, software licensed per physical machine, or rules requiring that hardware not be shared. It also suits teams that want to run their own virtualization.
The costs are less flexibility and slower change. Adding capacity can mean ordering new hardware and migrating. A failed component takes your only machine down until it is replaced, unless you rent a second one and build failover. Owning hardware and renting space for it is a further step, covered in colocation.
Cloud hosting
"Cloud hosting" is used loosely. In its fuller sense it means a platform where you create servers, storage, databases and load balancers through a web console or an API, and pay for what you use. A cloud virtual machine behaves much like a VPS. The difference lies in what surrounds it.
You can place copies of your site in separate availability zones, put a load balancer in front of them and add machines when traffic climbs. None of that happens by itself. A single cloud server with no backup or second copy is no more resilient than a single VPS.
Some budget hosts use "cloud" simply to mean that your account sits on a cluster of machines instead of one. Ask what actually happens when hardware fails.
Side by side
| Shared | VPS | Dedicated | Cloud | |
|---|---|---|---|---|
| What you rent | An account | A virtual machine | A physical machine | Services on demand |
| Admin access | No | Usually | Yes | Yes, for virtual machines |
| Neighbors | Many | Several, walled off | None | Varies by service |
| Scaling | Upgrade plan | Resize, often with a restart | Change hardware | Resize or add copies |
| Billing | Flat | Mostly flat | Flat | Largely metered |
| Typical upkeep for you | Application only | System and application | System and application | Depends on services chosen |
Managed or unmanaged
Each type except basic shared hosting comes in both forms. A managed plan includes operating system updates, monitoring and some help when things break. An unmanaged plan gives you the machine and keeps the hardware running.
Definitions of "managed" differ widely. Ask specifically whether the provider updates the operating system, the web server and the language runtime; who restores backups; whether someone responds to alerts at night; and where their help stops. Application code is often excluded.
A managed VPS can cost noticeably more than an unmanaged one. Compare that gap with the value of your own hours and the cost of a mistake. Managed WordPress hosting is a good example of paying for upkeep tied to one application.
How to choose
Start from what the site needs, then pick the smallest option that meets it.
Static hosting deserves the first look because it removes most of the questions. Serverless hosting is another route when you have code that runs only occasionally.
Cost behaves differently
Flat plans are easy to budget. You know the monthly figure, and exceeding a limit usually means slowdown or a request to upgrade.
Metered cloud billing charges for compute time, storage, requests and data leaving the network. It can be economical for a quiet site and surprising for a popular one. Data transfer out is a frequent surprise, explained in cloud egress. Set a budget alert on day one, and know that an alert warns you without necessarily stopping the spending.
For any plan, compare the renewal price rather than the introductory one, and add the extras: backups, a dedicated IP address, a control panel license, support tiers.
Three scenarios
A club website with a few pages and an events calendar. Traffic is modest and nobody wants to administer anything. Shared hosting, a website builder or a static site fits. A VPS would add chores without adding anything the members can notice.
A growing online store. Checkout pages are built for each shopper, so caching helps less than on a blog. A well-run managed plan or a managed VPS gives reserved resources and someone to call. A staging copy and tested restores matter more than raw speed.
A small team's custom application. It needs a particular runtime, a background worker and scheduled jobs. A VPS handles this at a predictable price. A cloud platform with a managed database becomes attractive when the team wants automatic backups and room to add copies without rebuilding the setup.
What scaling really means
Vertical scaling means giving one machine more processor and memory. It is simple, usually requires a restart and eventually hits the largest size available.
Horizontal scaling means running several copies of the application behind a load balancer. It improves both capacity and resilience, but the application has to cooperate. Anything stored on one machine's disk or memory, such as uploaded files or login sessions, must move to a shared place that every copy can reach. The database often becomes the next bottleneck.
Shared and dedicated plans mostly scale vertically. Cloud platforms make the horizontal kind much easier to arrange, which is their strongest argument for sites with uneven demand. If your traffic is flat and fits comfortably on one server, that advantage is mostly theoretical.
Signs it is time to move up
- Pages slow down during busy periods and the usage graphs show you at a limit.
- You need a program, version or port the plan does not allow.
- Background jobs are killed before they finish.
- An outage would now cost more than a second server.
Before upgrading, check for cheaper fixes. Caching, image compression and removing a heavy plugin often buy far more headroom than a bigger plan. Why websites load slowly lists the usual suspects.
Moving up is a migration even when it stays with one provider. Plan for a copy, a test and a switch, and check whether the server's IP address will change.
Mistakes that cost the most
Buying a large unmanaged server for a small site is a common one: you pay more and inherit security work you did not want. Another is leaving a VPS with password logins open and updates off. A third is treating the provider's snapshots as your only backup. Snapshots stored in the same account vanish with the account, so keep a copy elsewhere and restore it once to prove it works.
Finally, avoid designing yourself into a corner. Keeping your domain separate, your code in version control and your data exportable means any of these four choices can be changed later.