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