LearningTech

Deployment

Immutable Infrastructure

Description

Servers are never modified after they're deployed. If something needs to be updated, you replace the entire server/container.

Where to use

  • Consistency.
  • \n
  • Security.

Real World Example

Docker containers. You don't patch a running container; you build a new image and deploy it.

Code Example

class ImmutableInfrastructure:
    def __init__(self):
        pass

    def execute(self):
        print('Executing Immutable Infrastructure')