Deployment Strategies

How to deploy new versions safely.

  • Blue-Green: Run two versions, switch traffic
  • Canary: Gradual rollout to small percentage
  • Rolling: Update instances one by one

Advanced Deployments

Feature flags, A/B testing, and progressive delivery.

Feature Flag
if feature_flags.is_enabled("new_checkout"):
    return new_checkout_flow()
else:
    return old_checkout_flow()

GitOps & CD

Git as single source of truth for infrastructure and apps.

Monzo Bank

1600+ deployments per week using GitOps