Deployment

Blue–Green Deployment

Description

A technique that reduces downtime and risk by running two identical production environments called Blue and Green.

Where to use

  • Zero downtime deployment.
  • \n
  • Instant rollback.

Real World Example

Router points to Blue (v1). Deploy v2 to Green. Switch router to Green.

Code Example

class Blue–GreenDeployment:\n    def __init__(self):\n        pass\n\n    def execute(self):\n        print('Executing Blue–Green Deployment')