LearningTech

Deployment

Canary Deployment

Description

A pattern to roll out new features to only a small subset of users before rolling it out to the entire infrastructure.

Where to use

  • Testing in production.
  • \n
  • Risk mitigation.

Real World Example

Route 5% of traffic to v2 pods. If no errors, increase to 100%.

Code Example

class CanaryDeployment:
    def __init__(self):
        pass

    def execute(self):
        print('Executing Canary Deployment')