Skip to main content
  1. References/
  2. Architecture Design Basics/
  3. Pattern Taxonomy/
  4. Deployment & Evolution/

Deployment Strategies

·· 160 words· 1 min

🟡 P2 — mentioned in designs but rarely the crux; know the trade-offs

Strategies #

StrategyMechanismRollbackRisk
RollingReplace instances one-by-oneStop and reverseLow
Blue-GreenTwo identical environments, swap trafficSwap backMedium
CanaryRoute small % to new version, observeRoute backLowest
Shadow/DarkMirror traffic to new version, discard resultsN/A (no impact)Lowest

Instinct #

Canary for most production services. Route 1-5% of traffic to the new version, monitor RED metrics for 15-30 minutes, then gradually increase. Blue-Green for database migrations where you need instant rollback capability. Rolling for stateless services where canary infrastructure isn’t available.

Dark Launches (Shadow Traffic) #

Mirror production traffic to the new version but discard the results.

Production traffic
  ├──→ Live system (serves response to user)
  └──→ Shadow system (processes same request, response discarded)
       ↓
   Compare: latency, errors, output differences

Use cases: Validate migration handles real queries; load-test with production patterns; verify rewrite produces identical results.

Instinct: Dark launches are the safest validation because there’s zero user impact. Pair with Feature Flags for controlled rollout after validation.

References #