Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M2121

Immutable Infrastructure

Immutable Infrastructure
CultureHigh supportPhilosophy
Included
account_tree

Updated 2026-07-31

Loading revision record…

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).

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/5

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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

  • link
    ibm.comhttps://www.ibm.com/think/topics/immutable-infrastructureZH · Explicit
    verified
account_treeGenealogyexpand_more