What is the impact of DNS on application startup and connection pooling?
IntermediateProductionDNS & Traffic Management in Production
Answer
Apps resolve once when the pool is created, so a pool opened against an old IP stays on it. Databases behind failover endpoints (RDS, Aurora cluster endpoint) change IP on failover with a 5-second TTL, and apps that cache DNS indefinitely never move.
Set pool max lifetime (for example 5–30 minutes), enable validation queries, and configure JVM -Dsun.net.inetaddr.ttl=30.
More on DNS & Traffic Management in Production
What TTL values do you choose for production records?BeginnerHow would you design DNS for high availability?AdvancedHow do you manage DNS as code?BeginnerHow do you do a zero-downtime DNS cutover?IntermediateWhy does DNS failover take longer than expected, and how do you make it faster?AdvancedHow do Route 53 health checks work and what are their pitfalls?Intermediate