123DevOps··6 min read

Public, private, hybrid cloud, and colocation: differences and how they work

Learn, with simple analogies, the difference between public cloud, private cloud, hybrid cloud, multi-cloud, colocation, and on-premises, and when each one makes sense.

Beginner

“The company is moving to the cloud.” But which cloud? Public, private, hybrid? And what is this colocation thing? These names confuse a lot of people, but with a housing analogy everything becomes clearer.

If you haven’t read it yet, start with What is cloud computing.

The housing analogy

Think of a company’s servers as the place where it “lives”:

  • On-premises (or “on-prem”): this is owning a house. You built it, furnished it, and take care of everything: plumbing, roof, security.
  • Colocation: you rent space in a purpose-built building and bring your own furniture. The building provides power, climate control, security, and street access; the furniture is yours.
  • Private cloud: a house just for you, with automated services. It can be yours or rented entirely from someone, but nobody else lives there.
  • Public cloud: a hotel room. You check in, use it, pay per night, and leave. The building is shared with other guests, but each one has their own locked room.
  • Hybrid cloud: you own a house and, when family visits, you book hotel rooms. Both work together.

Public cloud

In the public cloud, the infrastructure belongs to a provider (such as AWS, Azure, or Google Cloud) and is shared by many customers. This sharing is called multi-tenant (“many tenants”): customers use the same physical machines but stay isolated from one another.

Advantages: you get started in minutes, without buying hardware, and scale up or down with demand. Watch out: cost grows along with usage (see FinOps on AWS).

Private cloud

A private cloud is infrastructure dedicated to a single organization. It can live in the company’s own data center or be hosted by a vendor, as long as it’s exclusive.

Note: having virtualized servers isn’t enough to call it a cloud. A real private cloud offers self-service (teams create resources on their own, without opening a ticket), automation, and usage metering. Common technologies in this space include VMware, OpenStack, and Proxmox VE.

Hybrid cloud

A hybrid cloud combines your own environment (on-premises or private cloud) with public cloud, connected and managed together. Example: the database with sensitive information stays in the company’s data center, while the website, which needs to grow on peak days, runs in the public cloud.

To connect the two worlds, companies use a VPN (an encrypted “tunnel” over the internet) or dedicated links, such as AWS Direct Connect and Azure ExpressRoute. There are also tools to manage everything from one place, such as Azure Arc, AWS Outposts (AWS hardware installed in your data center), and Google’s GKE Enterprise (formerly Anthos).

Multi-cloud: not the same as hybrid

Multi-cloud means using more than one public cloud provider, for example AWS for the core systems and Google Cloud for data analytics. It’s like staying at two different hotel chains.

A company can be hybrid, multi-cloud, both, or neither. Kubernetes helps run applications in a similar way across several environments, but it brings its own complexity (see when to use Kubernetes).

Colocation

With colocation, the company buys its own servers and rents space in a third-party data center. The data center operator provides racks (the metal “shelves” servers are bolted into), power, cooling, physical security, and internet connectivity. Installation, maintenance, and software remain the company’s job, and it keeps control of the hardware without having to build a data center.

Side-by-side comparison

CapEx is upfront investment (buying equipment). OpEx is recurring expense (paying monthly for usage).

Model Hardware owner Who operates it Cost model Elasticity Control Typical use
On-premises The company The company CapEx Low Full Legacy systems, strict requirements
Colocation The company The company (the building belongs to the operator) CapEx + monthly rent Low High Own hardware without building a data center
Private cloud The company or a dedicated vendor The company or the vendor CapEx or contract Medium High Regulation, steady workloads
Public cloud The provider The provider (you configure the services) OpEx, pay per use High Lower New projects, variable demand
Hybrid Mixed Mixed Mixed High on the public side High on the private side Gradual migrations, sensitive data
Multi-cloud Several providers Several providers OpEx High Lower, but no dependence on a single one Provider-specific services

When does each one make sense?

  • Regulation and data sovereignty: laws like Brazil’s LGPD or Europe’s GDPR, and rules in sectors such as finance, may require strict controls over where and how data is kept. Private or hybrid cloud can help, but many public clouds also have regions in multiple countries.
  • Steady, predictable workloads: if usage is the same all year, your own hardware or colocation may be cheaper in the long run.
  • Variable demand: the public cloud shines when traffic goes up and down.
  • Latency: if the system must respond in milliseconds inside a factory or store, running locally may be better.
  • Legacy systems: old programs tied to specific hardware often stay on-premises until they are modernized.

Want to feel latency (the network round-trip time) in practice? These commands measure how long it takes to open a test connection to AWS in São Paulo and in Virginia:

# Connection time (in seconds) to the São Paulo region
curl -s -o /dev/null -w "%{time_connect}\n" https://ec2.sa-east-1.amazonaws.com

# The same for Northern Virginia, in the United States
curl -s -o /dev/null -w "%{time_connect}\n" https://ec2.us-east-1.amazonaws.com

The region closer to you will usually show a smaller number. With the AWS CLI configured, aws ec2 describe-regions --output table lists the regions available to your account.

Common misconceptions

  • “The cloud is always cheaper.” Not always. For large, steady workloads, other models may cost less.
  • “The public cloud is insecure.” Providers invest heavily in security; many problems come from misconfiguration on the customer’s side.
  • “Hybrid and multi-cloud are synonyms.” No: hybrid mixes your own environment with public cloud; multi-cloud uses several public providers.
  • “Colocation is cloud.” No: with colocation the hardware and operations are yours; you only rent the space.

Try it yourself

  • Explain the housing analogy to a friend, including multi-cloud.
  • Run the two curl commands above and compare the times.
  • Look up which public cloud providers have a region in your country.
  • Write the difference between CapEx and OpEx in one sentence.
  • Think of a company you know and say which model fits it, and why.
  • Build your own table with two pros and two cons for each model.

Next steps

There’s no right cloud for everyone: there’s the right combination for your problem, your budget, and your rules.

Get updates on new posts and stay in the loop!