VPS vs cloud platform: what fits your project

A VPS is a virtual machine you administer end to end. A hosting platform gives you containers with the system underneath already set up. Pick a VPS for control and a platform to save time.

Updated 5 min read

Learning objectives

After reading this article you will be able to:

  • Understand what each model delivers and what it leaves to you
  • Compare a VPS, infrastructure cloud and hosting platform side by side
  • Decide which one fits your project and your time
On this page

Once the code works, the next question is where it runs. The usual three answers are a VPS, an infrastructure cloud and a hosting platform. The names blur together, and many people end up comparing things from different layers.

One difference matters most: how much of the environment you administer. More control means more responsibility, and each section below shows what that changes day to day.

VPSPlatformCode and configurationProxy, TLS and firewallRuntimeOperating systemHardwareYouroot accessProviderYouPlatform
On a VPS you run everything above the hardware; on a platform, only the code and its configuration.

What is a VPS?#

A VPS (Virtual Private Server) is a virtual machine on a physical server shared among several customers. You get CPU, RAM, disk and an operating system with root access, usually over SSH. The provider handles the hardware and the network. Everything else is yours.

That includes installing the runtime (Node.js, Python), setting up a reverse proxy, issuing a TLS certificate, opening only the ports you need in the firewall, keeping your process alive after a reboot and applying security fixes. On Ubuntu Server, the unattended-upgrades package ships installed and applies security updates automatically, by default once a day. It only covers the operating system, though: your application, its dependencies and your database are still your job.

You get total freedom: any software, any port, any version. The price is your time.

What is an infrastructure cloud (IaaS)?#

This is the model of the big public clouds: you rent building blocks (virtual machines, disks, networks, load balancers) and assemble the architecture yourself. A VPS is essentially the simple version of it. A cloud adds dozens of integrated services, usage-based billing and a long list of settings.

The gain is flexibility and scale. The cost is complexity: permissions, networking and billing all need setup, and a misconfigured account leads to surprise invoices. For a small bot or API, it's usually more than you need.

What is a hosting platform (PaaS)?#

On a platform you hand over code and configuration, and it supplies the rest of the stack: operating system, runtime and networking. Your app runs in an isolated container. You don't SSH into a server; you deploy.

This fits what the Twelve-Factor methodology describes: processes that start fast, tolerate being restarted at any moment and keep configuration in the environment, not in code. For the groundwork, see what deploy is and what environment variables are.

The trade is clear: less freedom (you can't install a driver or tune the kernel) in exchange for less maintenance.

VPS, cloud and platform side by side#

Criterion VPS Infrastructure cloud Hosting platform
You provide Code and server administration Code and the whole architecture Code and configuration
System access Full root Full root Inside the container
Updating the OS You You The platform
Time to first deploy Hours (server setup) Hours to days Minutes
Cost predictability High (fixed monthly price) Lower (usage billing) High (plans)
Unusual software Runs Runs Limited to the runtime
Scaling Manual Broad, with more setup Varies by platform

The table generalizes: every provider has exceptions, and some VPS plans come with a control panel and automatic backups. Check what your provider actually delivers before deciding.

When should you pick a VPS?#

A VPS is worth it when you need something a platform doesn't offer:

  • software outside common runtimes, such as a service with specific system dependencies;
  • several different services on one machine, tuned by hand;
  • learning server administration, a valuable skill on its own;
  • network or system configuration a platform doesn't expose.

If you choose a VPS, budget time for routine upkeep: a process supervisor (such as systemd), a firewall, updates, monitoring and backups of whatever matters. A server without those habits works until the day it doesn't.

When should you pick a hosting platform?#

A platform is the natural choice when your project is an ordinary application and your time is worth more than system control:

  • Discord, Telegram or WhatsApp bots that must stay on around the clock;
  • APIs and sites in Node.js, Python and similar languages;
  • small or mid-sized projects where nobody wants to become a sysadmin;
  • teams that prefer deploying from Git to configuring machines.

There is no universal winner. Many projects start on a platform for speed and move to a VPS or cloud when a specific need appears. Others move the opposite way to drop the maintenance.

How do you decide? Five questions#

  1. Does my software run as an ordinary Node.js, Python or similar process? If yes, a platform covers it.
  2. Do I need root access to the system? If yes, a VPS or cloud.
  3. How much time per month can I spend on maintenance? If the answer is "none", avoid a VPS.
  4. Does the cost need to be predictable? A VPS and platform plans have fixed prices; usage-billed cloud needs monitoring.
  5. Will I need heavy scale and many connected services? Then an infrastructure cloud starts to make sense.

Once you answer all five, the choice is usually obvious. If you're still unsure, start with the model that needs less maintenance and reassess when a real need shows up.

How to do this on Square Cloud#

If the platform model fits your project, Square Cloud follows it: it's self-service hosting where you deploy, choose the RAM and control the application. Your app runs in an isolated container that is always on, with no sleep mode, and there is no server to administer.

You can deploy by uploading a ZIP in the dashboard, with the CLI, through GitHub (a push triggers the deploy, via the official GitHub Action or a webhook) or with the VS Code extension. There are several runtimes, such as Node.js, Python, Java, Go and Rust: see the runtimes available today on Runtimes. Environment variables live in the dashboard or the API and apply on the next restart, with no rebuild.

To scale vertically, you change the RAM in the settings; there is no autoscaling. Plans are paid and billed in reais, by Pix or card, starting at R$12.49 per month on Hobby. Databases and custom domains start on Standard, and daily application snapshots on Pro.

See the full feature set in Square Cloud features.

Deploy

Push from GitHub, the CLI or a ZIP and go live in seconds

Learn more

FAQs

Is a VPS better than a hosting platform?

Neither wins everywhere. A VPS gives you full control of the system and suits unusual workloads. A platform removes server administration and speeds up deploys. The choice depends on what you need to control and how much maintenance time you can spare.

Who is responsible for VPS security?

You are. The provider hands you the virtual machine, but operating system updates, the firewall, SSH access and security fixes are on you.

Can I move from a VPS to a platform later?

Yes, and it is easier if the app already keeps its settings in environment variables and does not depend on loose files on the server disk. Databases require exporting and importing the data.

Does a hosting platform work for a bot or an API?

Yes. Bots, APIs and websites are the typical use, since they are always-on processes that fit in a container. What fits poorly is software that needs access to the whole system, such as a kernel module.

Next articleBackup strategies: snapshots vs backups and the 3-2-1 ruleThe 3-2-1 rule says keep 3 copies on 2 types of media with 1 offsite. Learn how to apply it to an app and database, how snapshots differ, and a script.

More in Deploy

See all 33 articles