Opening the book…
Beyond virtualization and networks, cloud computing has influenced (and been influenced by) a shift in how we design and build applications. Cloud-native architecture refers to designing software systems specifically to thrive in the dynamic, distributed, and scalable environment of the cloud. Two key aspects of cloud-native design are containers and microservices. We touched on containers earlier; here we consider how they, along with microservices, represent a technical foundation for building large-scale systems in the cloud.
Containers and Orchestration: Containers, like those enabled by Docker, package an application along with its dependencies into a standardized unit that can run anywhere. They are more lightweight than VMs and start much faster, making them ideal for scaling up and down rapidly. In cloud environments, container technology allows a high density of workloads and rapid deployment pipelines. For example, a large e- commerce site might break its application into dozens of containerized services (catalog service, payment service, user service, etc.), each running many container instances across a cluster.
Running containers at scale gave rise to container orchestration platforms like Kubernetes (open-sourced by Google in 2014). Kubernetes (often offered as a managed service in clouds, e.g., AWS EKS, Google GKE) automates deployment, scaling, and operation of containers. It can ensure desired counts of containers are running, handle upgrades with minimal downtime, and reschedule containers on healthy nodes if some nodes fail. This aligns perfectly with cloud’s elastic ethos – if load increases, Kubernetes can spin up more containers (which the cloud provisions on additional VMs if needed), and if a server goes down, it moves those containers elsewhere, all automatically.
Cloud-native applications often use containers as the deployment unit because:
Portability: A container image will run the same on a developer’s laptop, on an on-prem server, or in the cloud, as long as a container runtime is available. This removes the “it works on my machine” problem and smooths migration to the cloud.
Isolation: Containers isolate the application processes and file systems from each other, ensuring consistency and security, though not as strongly as VMs. Many containers can share a single VM, combining isolation with efficient resource use.
Speed and Scale: As noted, containers can be scaled out quickly. Because containers share the host OS and don’t each run a full OS, they have significantly less overhead and can achieve higher density. This smaller footprint reduces resource overhead and allows higher deployment density compared to traditional VMs. In practical terms, a physical host that might run 10 VMs could potentially run 50 or 100 containers (depending on workload) because each container only adds a little overhead beyond the application itself.
Microservices Architecture: Microservices is an architectural style where a software system is composed of many small, independent services that communicate over a network (often via APIs). Each microservice focuses on a specific business capability and can be developed, deployed, and scaled independently of others. This is in contrast to a traditional monolithic architecture, where all components are part of one large application (often running in a single process or a tightly-coupled set of processes).

Cloud environments, with their distributed nature and need for scalability, naturally encourage microservice designs:
- If an application is broken into microservices, each service can be scaled out horizontally as needed. For example, an e-commerce site might see heavy read traffic on product catalog but less on the user profile service; they can scale the catalog microservice to many instances without scaling the user service.
- Microservices also isolate faults: if one component has an issue (e.g., a memory leak causing crashes), it only affects that microservice, not the entire application. This aligns with building resilient cloud systems that continue operating even when parts fail (a concept from distributed systems: graceful degradation).
- Development agility is another reason: different teams can own different microservices, choose appropriate technologies for each (polyglot programming), and deploy updates without a full system release. In fast-moving industries, this autonomy is invaluable. Netflix famously championed microservices on AWS to achieve hundreds of deployments per day, which would be impossible with a monolith.
- However, microservices introduce complexity: you now have many moving parts communicating over a network, which introduces latency and requires careful design to handle network failures (the “fallacies of distributed computing” apply). This leads to patterns like circuit breakers, service discovery systems, distributed tracing for debugging, etc., which are now common in cloud-native apps (often implemented via a service mesh like Istio or Linkerd on top of Kubernetes).
Cloud-Native and Twelve-Factor Apps: The term “cloud-native” also encompasses methodologies like the twelve-factor app guidelines (originally from Heroku) – which advocate for stateless processes, externalizing state to backing services, configuration via environment variables, and so on. These practices ensure that an app can be easily deployed to cloud infrastructure and scaled out/in without issues. For instance, statelessness is key: if any VM or container can be destroyed at any time (as clouds do when auto-scaling or recovering from failure), the application should not rely on local state. Instead, state is stored in managed databases, or if local (like caches), it is disposable. Cloud load balancers typically do not guarantee the same client hits the same instance every time, so applications must handle that or use sticky sessions carefully.
Another aspect is DevOps and automation: Cloud-native goes hand-in-hand with Infrastructure as Code (templating deployments), CI/CD pipelines for frequent deployment, and monitoring and observability at scale. The technologies support these (e.g., Kubernetes yaml manifests, AWS CloudFormation or Terraform for IaC).
Real-World Example – Netflix Microservices: As mentioned earlier, Netflix completely rebuilt their system on AWS using microservices. They went from a monolithic DVD rental system (that had a single point of failure causing a 3-day outage in 2008) to hundreds of microservices in the cloud . Each microservice (such as “user preference service” or “recommendation service”) runs in an auto-scaling group of EC2 instances across multiple AZs for resilience. They communicate via REST and messaging. Netflix also created tools like Eureka (service discovery registry) and Hystrix (circuit breaker for inter-service calls) to manage the complexity, open-sourcing many of them. The payoff was enormous scalability (they can serve streams to hundreds of millions of devices globally), and reliability – the failure of any single service results in a degraded feature, not a total outage. For example, if the recommendation service is down, users might still stream but not see personalized recommendations for a time.
Serverless and FaaS: A modern extension of cloud-native design is serverless computing, often implemented with Functions as a Service. Here, instead of deploying always-on services, developers write small functions that execute on demand (triggered by events or HTTP calls). The cloud platform handles running these functions in ephemeral containers, scaling to zero when not in use. This abstracts away server management even more. AWS Lambda, Google Cloud Functions, and Azure Functions are examples. Serverless complements microservices by enabling even more fine-grained, event-driven architecture. It’s not suitable for all scenarios (e.g., long-running processes), but is great for sporadic or parallelizable workloads. The concept of “nanoservices” (very small units of logic) becomes feasible with FaaS.
Containers vs. VMs in Cloud Use: It’s important to note that containers didn’t replace VMs; they run on VMs typically, but containers changed how applications are packaged and deployed. Cloud providers see heavy adoption of containers (e.g., Kubernetes is one of the top AWS/GCP services by usage). Many legacy applications have been re-packaged into containers to ease migration to the cloud. Today, knowing how to containerize an application and orchestrate it is a fundamental cloud skill.
Summary of Cloud-Native Tech Benefits:
- Scalability: Containers and microservices allow parts of a system to scale independently and quickly, matching the elastic supply of resources in the cloud.
- Resilience: Distributed microservices across zones/regions with retries and fallbacks can survive instance failures or even full data center outages, something monoliths on a single machine could not.
- Efficiency: Packing many containers on fewer VMs improves resource utilization (less overhead per app). Plus, serverless ensures you use zero resources when idle.
- Agility: Small services mean smaller codebases for teams, faster deployment cycles, and easier targeted upgrades (DevOps culture thrives on these small deployable units).
Of course, this comes at the cost of complexity in architecture. Tools and patterns (like service meshes, cluster schedulers, etc.) have risen to manage that complexity. The industry is converging on best practices for cloud-native designs, often under the umbrella of the CNCF (Cloud Native Computing Foundation) which hosts Kubernetes and many related projects.
In essence, virtualization and SDN made the cloud possible by enabling flexible sharing of physical resources. Containers and microservices are enabling applications to make the most of the cloud by being designed for flexibility and distributed operation. Together, these technologies and architectures form the technical foundation that allows modern cloud platforms to achieve massive scale and for applications to reliably run on them.
This page titled 3.8: Cloud-Native Architecture- Containers and Microservices was last modified on Tue, 22 Sep 2026 21:13:22 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Felix Amoruwa.
The book could not be loaded just now.