Infrastructure Components
Typical latency ranges for each component in the request path
DNS Lookup
Cold misses dominate; prefer low TTL for agility and rely on resolvers.
10–100 ms
TLS Handshake
Amortize via connection reuse; TLS 1.3 is single RTT.
10–30 ms
Load Balancer (L7)
Keep policies simple; colocate with services.
0.5–2 ms
API Gateway
Auth and transforms live here; push slow logic to services.
5–15 ms
WAF
Inline rules; tune false positives.
1–5 ms
Message Queue
Broker hops add small latency; batch where possible.
1–10 ms
Cache Hit
Data locality is king; maximize hit rate.
0.1–1 ms