11 Scaling cloud architecture and Kubernetes
Vertical scaling gives one machine more resources. Horizontal scaling adds instances. A load balancer distributes work, but the shared database, queue, storage, and downstream APIs may remain bottlenecks.
- Scale the bottleneck
- Availability and consistency
- Cloud building blocks
- Kubernetes concepts
- Port the reference service deliberately
- Rolling releases and graceful shutdown
- Advanced failure exercises
- Exit exercise
Outcome: choose and operate more complex infrastructure when measured requirements justify it. Prerequisites: a reliable single-service deployment and recovery evidence. Environment: a disposable cluster or staging cloud account. Status: advanced design and implementation exercises; no cluster or multi-region deployment is claimed as tested here. Vertical scaling gives one machine more resources. Horizontal scaling adds instances. A load balancer distributes work, but the shared database, queue, storage, and downstream APIs may remain bottlenecks. Measure arrival rate, service time, and saturation before changing architecture. A stateless API instance can often be replaced without losing application state because that state is stored elsewhere. “Stateless” does not mean the system has no state.