Sub topic 4
Public, private, hybrid, and multi-cloud
What this chapter covers
The previous chapters described what makes a service "cloud": on-demand, elastic, measured, and built on pooled resources. This chapter asks a different question: who is allowed to share those resources, and where do they run? The answer is the deployment model.
This chapter assumes you know what a virtual machine is, what a region is, and the basic networking terms IP address, subnet, and VPN. Deployment models are separate from service models. IaaS, PaaS, and SaaS describe which layers you manage. Public, private, hybrid, and multi-cloud describe who owns and shares the underlying infrastructure. You can run IaaS in a public cloud or in a private one. You can use SaaS from a provider that also hosts your hybrid network.
The four deployment models
Public cloud
A public cloud is infrastructure owned and operated by a provider and offered to many unrelated customers over the internet. AWS, Microsoft Azure, and Google Cloud are public clouds. Customers are called tenants. Tenants share physical hardware, but the provider isolates them with virtualization and network controls.
Public cloud gives you the full set of essential characteristics with little effort. You get self-service provisioning, near-unlimited elasticity, and pay-per-use billing. The costs of ownership, such as buildings, power, and hardware refresh, belong to the provider.
The trade-offs are less control over physical placement and hardware choice, and a dependency on the provider's design decisions and outages.
Private cloud
A private cloud is cloud-style infrastructure used by a single organization. It can sit in your own data center, run by your staff, or it can be hosted and operated by a third party for you alone. What makes it a cloud, rather than just a server room, is that it still offers self-service, pooling, elasticity, and metering, usually through software such as OpenStack or VMware-based platforms.
Organizations choose private cloud for these reasons:
- Regulation or contracts that require data to stay in a specific building or under specific control.
- Workloads that need specialized hardware or very low latency to equipment on site.
- Steady, predictable demand, where owning capacity can cost less than renting it.
A private cloud is not automatically more secure. Its security depends on how well your team runs it. It is also less elastic. Your capacity is whatever you bought, and growing past it means purchasing hardware and waiting for delivery.
Hybrid cloud
A hybrid cloud combines a private environment and a public cloud, connected so that workloads and data can move between them or work together. The word "connected" matters. Having an on-premises server room and a separate public cloud account that never talk to each other is just two environments.
Typical hybrid patterns:
- Cloud bursting. The application normally runs on private capacity and overflows into the public cloud during peaks.
- Split tiers. The database stays on premises for compliance, and the web tier runs in the public cloud near users.
- Gradual migration. Systems move to the cloud in stages, and the two sides interoperate during the transition.
- Backup and disaster recovery. Backups or a standby environment live in the public cloud.
Connectivity comes in two common forms. A site-to-site VPN encrypts traffic over the public internet, so it is quick to set up but its bandwidth and latency vary. A dedicated private link, such as AWS Direct Connect, gives more predictable performance but takes longer to order and costs more.
Multi-cloud
Multi-cloud means using services from two or more public cloud providers. It is a different axis from hybrid. Hybrid mixes private and public. Multi-cloud mixes providers, and can include several public clouds with no private cloud at all. An organization can be both: on-premises plus AWS plus Azure.
Multi-cloud happens in two ways. Sometimes it is deliberate: you pick the best service from each provider, reduce dependence on one vendor, or meet customer requirements. More often it is accidental, through acquisitions or separate teams choosing different tools. Either way, the operating cost is real. Each provider has its own identity system, networking model, APIs, billing format, and terminology, and your team has to learn and secure all of them.
Comparing the models
| Model | Who owns the hardware | Who shares it | Elasticity | Main reason to choose it |
|---|---|---|---|---|
| Public | Provider | Many customers | Very high | Speed, scale, low upfront cost |
| Private | You or a hosting partner | One organization | Limited by owned capacity | Control, data residency, special hardware |
| Hybrid | Both | Mixed | High on the public side | Keep some workloads local, use cloud for the rest |
| Multi-cloud | Several providers | Many customers per provider | High | Best-fit services, resilience, negotiating position |
A placement policy in code
In practice, hybrid and multi-cloud depend on explicit rules for what runs where. The Python script below encodes a simple placement policy. Real policies are usually written as infrastructure-as-code or governance rules, but the logic is the same.
from dataclasses import dataclass
@dataclass
class Workload:
name: str
data_class: str # "regulated" or "general"
peak_ratio: float # peak demand divided by average demand
needs_local_hardware: bool
def place(workload: Workload) -> str:
"""Return the deployment target for a workload."""
if workload.data_class == "regulated" or workload.needs_local_hardware:
return "private"
if workload.peak_ratio >= 3.0:
return "public (elastic)"
return "public"
workloads = [
Workload("patient-records-db", "regulated", 1.2, False),
Workload("storefront-web", "general", 6.0, False),
Workload("plant-floor-controller", "general", 1.0, True),
Workload("internal-wiki", "general", 1.1, False),
]
for w in workloads:
print(f"{w.name:24} -> {place(w)}")Running it prints:
patient-records-db -> private
storefront-web -> public (elastic)
plant-floor-controller -> private
internal-wiki -> publicThe first two checks act as constraints. Data class and hardware needs can force a workload into the private environment. Only after those pass does the cost and elasticity logic decide among public options. That ordering is how most real placement decisions work: constraints first, optimization second.
Common errors
- Treating "private" as "secure" and "public" as "insecure." Both are secure only if configured correctly. Most cloud breaches come from misconfiguration, such as an open storage bucket or an overly broad access role, not from the provider's isolation failing.
- Assuming a hybrid link is free and fast. Data transfer between environments is often billed, and latency between a data center and a cloud region is far higher than latency inside one network. A chatty application split across the link can slow down badly.
- Choosing multi-cloud for resilience without designing for it. Running one application on two providers does not help if the application depends on one provider's database or identity service. Failover works only if data replication, DNS, and deployment pipelines are built to span providers.
- Confusing multi-cloud with portability. Using two providers does not make workloads portable. Portability comes from standard interfaces, such as containers or open databases, and from the work of testing a move.
- Ignoring skills and tooling cost. Every extra environment needs people who can operate and secure it, plus its own monitoring and cost tracking.
Deployment models and the rest of the tutorial
The deployment model affects later decisions. Where workloads run determines which regions and availability zones are available to you, and a private cloud has no provider-managed zones unless you build them. It also shapes the lock-in discussion later in this tutorial, because hybrid and multi-cloud strategies are partly responses to dependence on one vendor, and they carry their own costs.
Exercise
A hospital must keep patient records in its own data center because of a legal requirement, but wants its public appointment-booking website to handle large traffic spikes during flu season. Which deployment model fits, and which part runs where?
Show answer
A hybrid cloud. The patient records database stays in the private environment to satisfy the legal requirement. The appointment-booking website runs in a public cloud, where it can scale elastically during spikes. The two sides need a secure connection, such as a VPN or dedicated link, so the website can query the records system without exposing it to the internet.
Exercise
A company runs workloads on AWS and Azure and has no on-premises infrastructure. Is this hybrid cloud, multi-cloud, or both? Explain.
Show answer
It is multi-cloud only. Multi-cloud means using two or more public cloud providers, and the company does that. Hybrid cloud requires a private environment connected to a public cloud, and this company has no private environment.