Interview kitsBlog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2026 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Cloud
Cloudmedium

Blue/green vs canary deployment — what’s the difference?

Tags
#deployment#blue-green#canary#release
Back to categoryPractice quiz

Answer

Blue/green switches all traffic from old to new at once (with quick rollback). Canary rolls out to a small % first and gradually increases, reducing risk by observing metrics before full rollout.

Advanced answer

Deep dive

Both are "progressive delivery" techniques, but the control knob is different.

Blue/green

  • You maintain two environments: **blue** (current) and **green** (new).
  • Deploy to green, run smoke tests, then switch traffic (LB/DNS) from blue → green.
  • Rollback is fast: switch back.
  • Cost: you effectively run two stacks.

Canary

  • You deploy the new version alongside the old and route a **small percentage** of traffic to it.
  • Gradually increase traffic while monitoring SLIs (error rate, latency, saturation).
  • Safer for unknown changes, but rollback logic and observability must be strong.

Database and backwards compatibility

Both strategies get tricky when you change schemas:

  • Prefer backward/forward compatible migrations.
  • Use feature flags and expand/contract patterns.

Common pitfalls

  • No automated health checks/metrics → canary/blue-green becomes guesswork.

Related questions

Cloud
Blue/green vs canary deployments: what’s the difference?
#cloud#deployment#blue-green
Cloud
What is a container registry and why do teams use it?
#cloud#containers#registry
DevOps
Kubernetes: when do you use Deployment vs StatefulSet vs DaemonSet?
#kubernetes
Switching traffic without warming caches.
  • Breaking compatibility between versions during a rollout.
  • #deployment
    #statefulset
    DevOps
    Rolling vs blue/green vs canary deployments — what are the tradeoffs?
    #deployment#rolling#blue-green
    DevOps
    Continuous delivery vs continuous deployment — what’s the difference?
    #cd#release#deployment