EOXLABS designs to a target of under 50 ms p50 response at the edge, a design target rather than a measured guarantee. That number survives physics: a user near a Cloudflare data center, on a reused connection, can see it. A sub-2 ms response cannot, because one round trip on the lowest-latency US home broadband takes longer.
What does "under 50 ms" actually measure?
Three different clocks get called "response time". A latency claim means nothing until it names one.
- Server time is how long the handler ran, from request received to first byte sent. It excludes the network entirely.
- Time to first byte (TTFB), as web.dev defines it, is the sum of redirect time, service worker startup, DNS lookup, connection and TLS negotiation, and the request up to the first byte of the response. It is what the browser actually waits for.
- Full load adds every byte of HTML, script, style and image after that. It depends on page weight far more than on where the code runs.
Each clock also needs a percentile. The p50 is the median request. The p99 is the slowest one in a hundred, where distant users, congested Wi-Fi and cache misses live. Tail latency compounds under fan-out: Dean and Barroso show that when each server is slow on one request in 100 and a user request waits on 100 such servers, 63% of user requests are slow. A p50 figure should always travel with its p99.
How far can a signal travel in 50 ms?
Light in a vacuum moves at 299,792,458 meters per second, about 3.3 µs per km. Glass slows it down. ITU-T Recommendation G.114 uses a planning value of 5 µs per km for optical fibre cable systems, which allows for delay in repeaters and regenerators. That is about two thirds of the vacuum speed, or 200 km of fiber per millisecond, one way.
A round trip therefore costs at least 1 ms for every 100 km of fiber path. Fiber routes can never be shorter than the great-circle distance between two points, and they usually follow roads, rails and seabeds, so the straight-line figure is a floor. A user 1,000 km of fiber away pays at least 10 ms per round trip before any software runs.
How many round trips does a cold HTTPS request need?
A first visit pays for setup before it pays for content:
- DNS. If the name is not cached on the device, the resolver must answer, and on its own cache miss it must ask the authoritative servers too.
- TCP. The three-way handshake in RFC 9293 costs one round trip before any data flows.
- TLS 1.3. A full handshake under RFC 8446 costs one more. Its 0-RTT mode saves that trip on resumption, but the RFC warns that 0-RTT data is not forward secret and has no guarantees of non-replay between connections.
- The request. One more round trip to send it and receive the first byte.
Over TCP that is three round trips, plus DNS, plus server time. QUIC, specified in RFC 9000, folds the transport and cryptographic handshakes together, so HTTP/3 needs two. A reused connection needs one. Budget it out: to keep a cold TCP request under 50 ms with zero DNS time and zero server time, the round trip must stay under about 16.7 ms.
What does Cloudflare's 50 ms statement promise?
Cloudflare's network page says:
95% of the world's Internet-connected population is within 50 milliseconds of a Cloudflare data center — most are within 20ms.
Read it closely. It describes network proximity to a data center, not how fast any application responds. It does not say whether the figure is one-way or round trip. It is a necessary condition for a sub-50 ms edge response, not a sufficient one. If the code in that data center then waits on a database in another region, the user pays for that trip as well. Cloudflare's own Hyperdrive documentation puts each query at 20–30 ms from a distant region, or 1–3 ms when placed nearby. Two sequential queries to a distant database spend the whole budget. That is the practical difference between edge-native and merely edge-deployed code.
Why is a sub-2 ms response not a defensible claim?
The access network alone takes longer. The FCC's 2023 Measuring Broadband America fixed report measured median idle round-trip latency from home routers to the test server with the lowest round-trip time. Fiber ISPs measured 7 ms to 14 ms, cable 12 ms to 24 ms, and DSL 23 ms to 34 ms. The best of those, 7 ms, is three and a half times a 2 ms budget, on an idle line, before TLS and before the request is parsed.
Even with a perfect access network, a 2 ms round trip needs the server within 200 km of fiber and leaves no time for software. Sub-2 ms is a real number only for work inside the data center: a cache read, an in-memory lookup, a handler's own CPU. Quoting it as a response time misleads the reader, so EOXLABS does not.
What does each latency claim require to be true?
| Claim | What has to be true | Verdict |
|---|---|---|
| p50 server time under 50 ms | The hot path reads edge state or cached data, with at most one trip to a distant region | Defensible design target; measurable per request |
| p50 TTFB under 50 ms on a reused connection | Median round trip to the nearest data center plus server time stays under 50 ms | Defensible for fixed-broadband users near a data center; report it per region |
| p50 TTFB under 50 ms on a cold HTTPS connection | DNS, three round trips over TCP (two over QUIC) and server time fit in 50 ms | Only for users close to a data center; at DSL's 23 ms idle round trip, three trips alone take 69 ms |
| p99 under 50 ms, everywhere | The slowest 1% (cellular, congested Wi-Fi, packet loss, cache misses) also fits | Not defensible as a public claim |
| Any end-user response under 2 ms | A round trip under 2 ms with zero processing time | Not defensible; it can only describe work inside the data center |
How do we measure latency without fooling ourselves?
Server time goes in the Server-Timing header, still a W3C Working Draft, which lets the server report named durations that the browser exposes to scripts. Cloudflare Workers add a catch: in production, Date.now() and performance.now() advance only after I/O, as a Spectre mitigation. A timer around the handler measures time spent waiting on storage and subrequests, not CPU spent between them, so we label it as I/O wait.
export default {
async fetch(request, env) {
const start = performance.now();
const upstream = await route(request, env); // KV, D1 or Hyperdrive reads
const res = new Response(upstream.body, upstream);
res.headers.append('Server-Timing', `edge-io;dur=${(performance.now() - start).toFixed(1)}`);
const rtt = request.cf?.clientTcpRtt ?? request.cf?.clientQuicRtt;
if (rtt !== undefined) res.headers.append('Server-Timing', `client-rtt;dur=${rtt}`);
return res;
}
} satisfies ExportedHandler<Env>;
The second entry reads clientTcpRtt or clientQuicRtt from the request's cf properties, Cloudflare's smoothed round-trip estimate for the client's connection. With both values in one response, a real-user monitoring (RUM) beacon can split each TTFB into network time and server time.
Synthetic checks, scheduled requests from fixed locations, are repeatable and catch regressions. They usually run from well-connected data centers, which flatters the result. RUM records what real users get, including the phone on a train, and it is the only honest basis for a public TTFB number. We treat lab numbers as diagnostics, never as claims.
Every figure worth publishing names its clock, its percentile, its population and its time window. Measured results from EOXLABS deployments are internal; we share them on request at contact@eoxlabs.dev, each with its clock, percentile, population and time window.
For how this budget shapes system design, see edge architecture at EOXLABS, the Cloudflare Workers and Hyperdrive stack notes, and the field note on moving a monolith to the edge without downtime. More notes are on the engineering index.
— DL