CDN Architecture: How Edge Nodes and GSLB Fix the Latency That HTTP Can't
Latency from distance and network interconnect is a hard constraint that HTTP headers can't fix. Knowing how GSLB and cache hit rates work helps developers choose, tune, and measure CDN delivery, so a global audience gets consistent performance rather than multi-second waits.
HTTP and even HTTP/2 don't address the speed of light in fiber: at 200,000 km/s, a Beijing-Guangzhou round trip costs 20 ms before any processing. The internet is also a patchwork of carrier networks with few interconnection points; crossing networks means squeezing through a narrow bridge with thousands of other users. Router and gateway hops add per-node delays. For a user on one side of the globe hitting a site on the other, these factors multiply into multi-second waits.
CDN counters this with a dedicated private network that spans cities and carriers over high-bandwidth lines. It caches static resources on edge nodes near users, using push or pull methods. Dynamic resources can't be cached unless they carry a Cache-Control header with a short TTL, effectively treating them as static for that window.
To choose the right edge node, GSLB runs at the DNS level: the authoritative DNS returns a CNAME to the CDN's GSLB, which then evaluates user IP location, carrier, node load, health, and bandwidth to pick the best fit. The caching proxy then tracks hit and origin-fetch rates; commercial CDNs exceed 90% hit rates, multiplying origin capacity by 10x. Modern CDN services layer on SSL acceleration, content optimization, anti-leeching, and WAF.
HTTP/2's improvements focus on connection reuse and multiplexing, but they don't touch the physical propagation delay that dominates long-range traffic; CDN is a necessary layer.
The static/dynamic split means developers can't rely on CDN for personalized or computed content; they must design for cacheability to benefit.
The DNS CNAME approach makes CDN integration transparent to clients, but it adds an extra DNS lookup that can be optimized with DNS prefetching or TTL tuning.
A 90%+ hit rate indicates that most web traffic is static, but for content-heavy sites (video, images), the number is meaningful; for dynamic apps, it could be much lower, and CDN alone won't solve latency.