Immutable infrastructure
Immutable infrastructure is an infrastructure-management approach in which deployed resources are replaced with newly configured resources rather than modified in place.
Grokking Software Architecture
An operational approach in which deployed infrastructure is changed by rebuilding and replacing instances rather than modifying them in place.
- How it is used
- Replace live servers through rebuild-and-replace deployments instead of changing them in place.
- How deep it goes
- Defines immutability, details the replacement pipeline, and explains drift, rollback, security benefits, and the database exception.
- Examples
- Uses a security-patch scenario, printed-flyer analogy, and Blue-Green traffic switch with rollback.
- What you can do after
- Operate a deployment pipeline that builds a patched replacement, verifies it, shifts traffic, and removes the old instance.
Read how Grokking Software Architecture explains immutable infrastructure →
Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
Immutable infrastructure is an infrastructure-management approach in which any configuration change is applied by creating a new resource rather than modifying an existing one.
- How it is used
- Uses resource replacement to apply infrastructure configuration changes while reducing failure risk and drift.
- How deep it goes
- Defines replacement and explains reconciliation, but stops short of detailed deployment orchestration.
- Examples
- Uses Python 2-to-3 server replacement, machine image builders, and an out-of-band server update.
- What you can do after
- Apply it via infrastructure as code by replacing resources and reconciling emergency mutable changes in version control.
Also covered in
- Spring Microservices in Action
- Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu
What to know first
- infrastructure as codeInfrastructure as code is the practice of defining, provisioning, and managing computing infrastructure through machine-readable code or configuration rather than manual procedures.
Related concepts
- microservice architecturepart of · Microservice architecture is a software architectural style that structures an application as independently deployable services, typically organized around focused capabilities and communicating through defined interfaces.
- mutable infrastructurecontrasts with · Mutable infrastructure is an infrastructure-management approach in which resources are modified in place without being recreated or restarted.
- machine imageuses · A machine image is a packaged template containing an operating system and associated software or configuration, used to create a computing instance.
- cloud-native architectureused by · Cloud-native architecture is an approach to designing and operating applications to exploit cloud infrastructure and services, including distributed operation, elasticity, and automated management.
- configuration driftaddressed by · Configuration drift is the unintended divergence of a system’s actual configuration from its intended configuration or from that of equivalent environments over time.
- driftaddresses · Drift is a change or divergence over time in a system’s data, state, behavior, or performance relative to a reference or intended condition.
Questions about immutable infrastructure
What is immutable infrastructure?
Immutable infrastructure is an infrastructure-management approach in which deployed resources are replaced with newly configured resources rather than modified in place.
Which Manning books explain immutable infrastructure?
Grokking Software Architecture and Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform.
What should I know before learning immutable infrastructure?
Manning books that teach immutable infrastructure usually introduce infrastructure as code first.
What is the difference between immutable infrastructure and mutable infrastructure?
Immutable infrastructure is an infrastructure-management approach in which deployed resources are replaced with newly configured resources rather than modified in place. Mutable infrastructure is an infrastructure-management approach in which resources are modified in place without being recreated or restarted.
What is immutable infrastructure part of?
Immutable infrastructure is part of microservice architecture. Microservice architecture is a software architectural style that structures an application as independently deployable services, typically organized around focused capabilities and communicating through defined interfaces.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

