Immutable Infrastructure
Updated 2026-07-31
Summary
Refers to the practice of never modifying a server after it has been deployed.
Definition
Refers to the practice of never modifying a server after it has been deployed. If updates or fixes are needed, the old server is destroyed and a new one is deployed, rather than patching the existing one. Scaffold use: eliminates configuration drift. It embodies the philosophy of "replace over repair." When dealing with complex legacy issues (such as bad code or bad systems), sometimes starting over (Immutable) is safer and more efficient than patching (Mutable).
Introduction
How to use
Eliminates configuration drift. It embodies the philosophy of "replace over repair." When dealing with complex legacy issues (such as bad code or bad systems), sometimes starting over (Immutable) is safer and more efficient than patching (Mutable).
Mechanism
Long-lived mutable infrastructure accumulates "configuration drift" due to piecemeal changes (inconsistent environments, unreproducible states), making troubleshooting difficult and rollback hard. The immutable pattern replaces "in-place modification" with "fresh deployment + destroy old," ensuring consistency, versionability, and one-click rollback. The idea extends to "replace over repair"—when the cumulative cost of modifying an object exceeds rebuilding, starting over is safer.
Practice
In progress 0/5Practice this model in one real situation:
Cases
- - Operations: Container/VM image deployment; replace entirely on issues rather than SSH changes. - Organization: Rebuild rigid processes from scratch rather than patching rules. - Code: Rewrite modules instead of patching a mess.
Common pitfalls
- - Treating "immutable" as absolute, ignoring that stateful data needs separate management. - Underestimating rebuild costs, leading to blind restarts. - Neglecting that images themselves need governance (versioning/security).
Sources
Source support: Explicit
- ibm.comhttps://www.ibm.com/think/topics/immutable-infrastructureverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.