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:\n    def __init__(self):\n        pass\n\n    def execute(self):\n        print('Executing Immutable Infrastructure')