Why does cross-AZ traffic matter for cost and latency?
IntermediateScenarioPerformance, MTU, Latency & Tools
Answer
Situation read → AZs are separate data centers in a region with small latency and per-GB charges.
What I'd do →
- Latency within an AZ is typically under 1 ms, cross-AZ about 1 to 2 ms
- AWS charges for data transferred between AZs in both directions
- Keep chatty paths (app to cache) in the same AZ with topology-aware routing
- In Kubernetes use
topology.kubernetes.io/zoneand topology aware routing on Services - Check cost with Cost Explorer filtered to
DataTransfer-Regional-Bytes
Why → Spreading for availability is right, but chatty cross-AZ calls cost money and latency.
Interview tip → Say you balance availability against locality deliberately.
More on Performance, MTU, Latency & Tools
Latency, bandwidth and throughput: what is the difference and why does it matter?BeginnerWhen do you use ping, traceroute and mtr?BeginnerWhat is MTU and what is the usual value?BeginnerHow do you check what is listening on a port and who is connected?BeginnerHow do you measure where time goes in a slow HTTP request?BeginnerWhat does tcpdump do and what are the first filters you use?Beginner