Intermediate → Advanced25 min read· Topic 9.2

Cloud infrastructure patterns

Multi-region, multi-cloud, IaC, immutable infrastructure, deployment strategies

☁️Key Takeaways

  • 1
    Infrastructure as Code (IaC): Terraform, Pulumi — all infra defined in version-controlled code
  • 2
    Immutable infrastructure: never SSH in and modify — replace the whole instance
  • 3
    Multi-region: active-active (both serve traffic) or active-passive (standby for failover)
  • 4
    Deployment strategies: blue/green, canary, rolling — each trades speed for safety differently

Cloud-Native Infrastructure Design

Modern cloud infrastructure is defined as code, immutable by design, and distributed across multiple regions. Understanding these patterns is essential for designing systems that can survive datacenter failures and serve global users.

Key Patterns

All infrastructure (VPCs, load balancers, databases, DNS) is defined in code — Terraform, CloudFormation, Pulumi.

Benefits: reproducible environments, code review for infra changes, rollback via Git, disaster recovery from code.

Anti-pattern: ClickOps — making changes through the console. Leads to snowflake environments that can't be reproduced.

Advantages

  • IaC enables reproducible, version-controlled infrastructure
  • Multi-region provides high availability
  • Immutable infra eliminates configuration drift

Disadvantages

  • Multi-region doubles (or more) infrastructure cost
  • IaC has a learning curve
  • Immutable deploys can be slower for large images

🧪 Test Your Understanding

Knowledge Check1/1

What's the main advantage of immutable infrastructure?