How do you avoid cross-AZ data transfer charges in a chatty architecture?
AdvancedProductionVPC and Network Design
Answer
Cross-AZ traffic is charged in both directions. Mitigations: keep NAT per AZ; enable topology-aware routing in Kubernetes (service.kubernetes.io/topology-mode: Auto) or traffic distribution PreferClose; consider disabling cross-zone load balancing on NLBs when targets are balanced per AZ; read from replicas in the same AZ; and colocate tightly coupled services. Do not sacrifice multi-AZ resilience for it; measure with Cost Explorer usage type DataTransfer-Regional-Bytes first.
More on VPC and Network Design
Walk through a production VPC layout for a multi-tier app.BeginnerHow do you size VPC CIDRs to avoid painting yourself into a corner?IntermediateOne NAT gateway or one per AZ?BeginnerWhat are the biggest levers to reduce NAT gateway cost?IntermediateWhich VPC endpoints do you create by default in a private EKS or ECS VPC?IntermediateHow do you lock down what can go through a VPC endpoint?Advanced