Cloud deployment patterns
Choose the fewest useful delivery layers
Start with a fictional catalog API needing custom URI routing and two private Nginx instances. A public managed application load balancer can terminate TLS and distribute traffic; Nginx then handles application-specific routing. If the managed service already meets every requirement, remove Nginx. A VM offers OS and configuration control but leaves patching, failover and scaling to the operator. A container service packages configuration with the image; Kubernetes adds declarative reconciliation but also controller and network complexity. These are alternative designs, not layers that must all be installed.
Option A: client → Nginx VM → private appOption B: client → managed HTTP load balancer → private Nginx VMs → appOption C: client → managed ingress → Nginx container → appAWS blueprint
Illustrative design: an internet-facing Application Load Balancer (ALB) in a VPC, with EC2 targets in private subnets across two enabled Availability Zones. An HTTPS listener forwards to an HTTP target group on port 8080. Register each target and configure /healthz. Restrict the target security group to the load balancer security group on the required port; use private management and no public target IP. ALB health checks depend on target registration, listener rules and enabled zones. For container scheduling consider ECS or EKS; EKS does not itself configure an ingress controller. CloudFront is an optional cache layer, not a required component. This is a design sketch, not a resource template.
AWS: Route 53 DNS → ALB HTTPS listener → target group HTTP:8080 → EC2 nginx-a (AZ A), nginx-b (AZ B) → private catalog appProbe: GET /healthz, expected 200Management: approved private access onlyAzure blueprint
Use Application Gateway with a backend pool of private Azure Virtual Machines or a scale set. Place the gateway in its dedicated subnet and choose supported zone redundancy for the selected SKU and region. Configure a backend HTTP setting and a custom probe with the expected host and path. Network security rules must allow required gateway-to-backend traffic while respecting gateway infrastructure requirements. Azure Container Apps or AKS are alternatives where the workload warrants them. Azure Front Door can provide an additional global edge, only when justified.
Azure: Azure DNS → Application Gateway HTTPS listener → backend HTTP setting:8080 → private VM scale set → appProbe: expected Host + /healthzOptional: Front Door only after reviewing origin trustGoogle Cloud blueprint
Use a global external Application Load Balancer and a backend service with a managed instance group of private Compute Engine VMs. The URL map selects the backend service. Allow only the documented health-check and proxy source ranges for the selected LB mode and backend type; these ranges are not inferred from the public VIP. A regional external Application Load Balancer has different proxy networking requirements. Compare GKE and Cloud Run for container applications rather than treating them as identical to VMs. Region, machine type, SKU and supported feature availability must be confirmed before deployment.
Google Cloud: Cloud DNS → global external Application Load Balancer → URL map → backend service → managed instance group:8080 → appProbe: /healthzOptional: Cloud CDN only for eligible public responsesPractice and next steps
Practice: Compare the three blueprints in lab-fixtures/chapter-52/blueprints.json. For a catalog API with custom Nginx routing, identify the target, probe, firewall boundary and one alternative with fewer layers. Use the staged manual exercise; no live deployment is required.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud deployment patterns
Assess Cloud delivery design and operational reasoning.
When should Nginx be omitted?
What defines ALB targets?
What controls Azure backend probe details?
What selects a Google HTTP backend service?
What is a zone redundancy prerequisite?