Interview Prep/Networking/DNS & Service Discovery

How would you do a DNS-based canary release for a global app, and what are its risks?

AdvancedScenarioDNS & Service Discovery
Answer

Situation read → Weighted DNS records provide a gradual shift but are coarse.

What I'd do →

  1. Create two weighted records (for example 99 to the stable ALB and 1 to the canary ALB) with health checks
  2. Increase weight in steps while watching error rates and latency
  3. Keep TTL at 30 to 60 seconds
  4. Know the risk: caching means a client may stay on canary longer, and weights are by DNS query, not by request
  5. Prefer load-balancer weighted target groups for per-request control

Why → DNS shifts by resolver query, so low-volume clients may see skewed ratios.

Interview tip → Say you use DNS for cross-cluster shifts and ALB weights for within-region.

All Networking questions Roadmap: Networking for DevOps

More on DNS & Service Discovery