</>CodexBash
All articles
Networking

CDNs explained

How content delivery networks make websites faster and more resilient: edge servers and points of presence, how requests reach the nearest edge, cache hits and misses, Cache-Control headers, cache keys and invalidation, caching dynamic content and APIs, security features, and setting one up.

CodexBash, , 6 min read

A user in Chennai loading a site hosted in Virginia waits for every request to cross the world and back, a round trip of well over 200 milliseconds before any work is done. A content delivery network (CDN) puts copies of your content on servers in hundreds of cities, so that user is served from a machine perhaps 10 milliseconds away. CDNs make sites dramatically faster, absorb traffic spikes and attacks, and reduce the load on your own servers. Most of the web you use is served through one. This article explains how they work and how to configure caching correctly.

Sign in to read the rest

The whole 6 minute article is free with an account, along with every problem, lesson and tutorial. No card.