# CDN - Content Delivery Network
## What is a CDN
A Content Delivery Network or CDN is a geographically distributed network of servers that work together to deliver internet content quickly to users based on their geographic location. Instead of all users worldwide downloading content from a single origin server, a CDN stores copies of the content on servers located in many locations around the world. When a user requests content, it is delivered from the CDN server that is geographically closest to the user. This reduces latency because data does not have to travel as far, and reduces load on the origin server.
## How a CDN Works
A CDN operator has a network of servers called points of presence or PoPs distributed across many geographic locations. When an organization uses a CDN for its website, it configures its domain to point to the CDN. When a user's browser requests content, the DNS system routes the request to the nearest CDN server based on the user's location. The CDN server checks whether it has a cached copy of the requested content. If it does, it serves the content directly from its cache. If it does not, it fetches the content from the origin server, caches it for future requests, and returns it to the user.
## What CDNs Deliver
CDNs are most commonly used to deliver static content that does not change frequently and can be cached, such as images, videos, CSS files, JavaScript files, and downloadable software. Video streaming platforms use CDNs extensively because video files are large and latency-sensitive. Software companies use CDNs to distribute software downloads quickly to users worldwide. News websites use CDNs to handle traffic spikes during breaking news events. CDNs can also accelerate dynamic content delivery through optimized routing and connection reuse between CDN servers and origin servers.
## Benefits of a CDN
Reduced latency is the primary benefit because content is served from a server close to the user. Improved performance results from faster load times. Reduced load on origin servers because CDN servers handle most requests. Better availability because content can still be served from CDN caches even if the origin server is temporarily unavailable. Improved security because CDN providers offer protection against DDoS attacks and can absorb large traffic spikes. Reduced bandwidth costs because CDN servers serve content that would otherwise come from the origin server.
## Popular CDN Providers
Major CDN providers include Cloudflare, Amazon CloudFront, Akamai, Fastly, and Azure CDN. These providers have extensive global networks with hundreds of PoPs on every continent. Organizations choose CDN providers based on coverage in relevant geographic regions, performance, pricing, and additional features like DDoS protection and security filtering.Back to Course