How does canary releasing differ from blue-green deployment?

Canary releasing and blue-green deployment both reduce deployment risk, but they differ in how gradually the new version is exposed to users.

Key Points

Example

For a checkout service change, a canary release might send 2% of live traffic to the new version for an hour and watch error rates before ramping up, while a blue-green deployment would instead fully test the new version in an idle "green" environment and then switch 100% of traffic over at once.

# Canary with Istio: 95% of requests to v1, 5% to v2
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: checkout
spec:
  hosts:
    - checkout
  http:
    - route:
        - destination:
            host: checkout
            subset: v1
          weight: 95
        - destination:
            host: checkout
            subset: v2
          weight: 5
# Increase the v2 weight step by step (5 -> 25 -> 50 -> 100) while error rate
# and latency stay normal. Blue-green would switch 0 -> 100 in one step.

Interview Tip

A concise interview answer is

Canary releasing gradually shifts a small, increasing slice of real traffic to the new version so you get production feedback with a limited blast radius. Blue-green instead tests fully in an idle environment and then cuts all traffic over at once. Canary needs more traffic-splitting capability, but catches issues earlier with less user impact.

Last updated: 1 November 2026

Previous question: Can you describe blue-green deployment?

Next question: What tools would you recommend for automating microservices deployment?

More Microservices - Level I interview questions

All Microservices - Level I questions