Distribute Amazon RDS traffic between read replicas using Network Load Balancer
Loading article
Software Architecture/Databases
Distribute Amazon RDS traffic between read replicas using Network Load Balancer
AWS Database Blog·Yesterday·14 min read
By Vijay Chakraborty
Machine LearningMonitoringTerraformAWS
AI summary
This article demonstrates an architecture for distributing read traffic across Amazon RDS read replicas using a Network Load Balancer (NLB) and an automated Lambda synchronization function. By bypassing client-side DNS caching and leveraging AZ-affinity routing, this approach provides a stable entry point for hybrid connectivity scenarios without the overhead of PrivateLink.
Key points
Use NLB target group synchronization via Lambda to manage dynamic RDS read replica IPs.
Disable cross-zone load balancing on the NLB to enforce AZ-local traffic routing.
Implement health checks on the NLB to automatically route around unhealthy RDS replicas.
Simplify hybrid connectivity by providing a single stable static IP for on-premises clients.