Key takeaways
- Latency is the round-trip delay, separate from bandwidth.
- DNS, TCP, TLS and the request each add round trips.
- Host near your audience and use a CDN to cut latency.
Latency is the time it takes data to travel from one point to another — usually measured as round-trip time (RTT) in milliseconds. Bandwidth is how much data can flow; latency is how long each trip takes.
Why distance matters
Signals in fibre travel at roughly two-thirds of the speed of light, and real routes aren’t straight lines. Each extra thousand kilometres adds several milliseconds each way — and loading a page takes many round trips.
Where the round trips come from
Before the first byte of a page arrives, a browser typically needs:
- A DNS lookup to find the server’s IP address.
- A TCP connection (one round trip).
- A TLS handshake for HTTPS (one more round trip with TLS 1.3).
- The HTTP request itself.
A visitor 150 ms away from your server can spend over half a second just setting up the connection.
How to reduce latency
- Host close to your audience. If most customers are in the Gulf, a server in the region beats one in North America.
- Use a CDN so static files are served from nearby edges.
- Use fast DNS and sensible TTLs so lookups are quick and cached.
- Enable modern protocols — HTTP/2, HTTP/3 and TLS 1.3 cut round trips.
- Reduce requests — fewer files and fewer third-party domains mean fewer connections.
Measure it
Run a speed test from locations where your visitors are. Time to first byte (TTFB) combines latency with your server’s processing time.