← Back to all heuristics

Make Infrastructure Disposable

Cattle, not pets.

AutomationReliabilityInfrastructure

Heuristic

Treat infrastructure as replaceable, not precious.

Hook

Pets become snowflakes.

Problem

Long-lived servers and manual configuration lead to drift. Recovery and scaling become slow and risky because the system cannot be rebuilt reliably.

Why it matters

Disposable infrastructure makes change safe. You can replace components instead of fixing them in place, which reduces risk and speeds recovery.

Signals you are here

  • Servers differ across environments
  • Patching happens manually on production hosts
  • Replacing a server is risky or impossible
  • Scaling requires manual steps

Anti-patterns

  • Treating servers as pets
  • In-place upgrades with no rollback
  • Manual configuration changes in production
  • No infrastructure as code

Try this

  • Use immutable images for deployments
  • Manage infrastructure as code
  • Adopt blue/green or rolling replacement strategies
  • Automate provisioning and teardown
  • Verify rebuilds regularly

Example

A team moved to immutable AMIs and replaced servers weekly. Drift disappeared and scaling became a routine automation task.

Reflection prompt

If you had to replace a server today, could you? Make that true.

More like this

Heuristic

Test Where It Breaks, Not Where It Works

Test the breaks, not the breeze.

AutomationReliabilityDelivery

Heuristic

State Is Your Enemy, Treat It Carefully

Less state, fewer surprises.

ReliabilityArchitectureInfrastructure

Heuristic

Automate What You Repeat

Repeatable work belongs to code.

AutomationFlow

Heuristic

Blame the Process, Not People

Fix the system.

LearningReliability

Heuristic

Fail Closed, Log Everything, Recover Gracefully

Safe failure beats quiet failure.

ReliabilitySecuritySecurity

Heuristic

If You Cannot Automate It, You Do Not Understand It

Automate to learn, not just to save time.

AutomationArchitecture