Executing Blue-Green Deployments with AWS ALB & Target Groups
Swapping production traffic instantly at the load balancer layer with zero dropped connections or request timeouts.
A technical publication covering database migration strategies without locks, canary releases, blue-green deployment patterns, and health-check readiness probes.
apiVersion: apps/v1
kind: Deployment
metadata:
name: zero-downtime-app
spec:
replicas: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25% # Spin up new pods before killing old ones
maxUnavailable: 0 # Guarantee 100% serving capacity during deployment
Swapping production traffic instantly at the load balancer layer with zero dropped connections or request timeouts.
Renaming database columns and altering schema constraints safely across multiple deployments without table locks.
Progressively routing 1% to 100% of user traffic based on real-time HTTP error rate and latency metrics.