Glossary

CDN

TL;DR

A CDN (Content Delivery Network) is a distributed network of servers that delivers web content to users based on their geographic location, improving performance and reducing latency.


Concept

A CDN (Content Delivery Network) is a geographically distributed network of proxy servers and data centers that provides high availability and performance by caching and delivering web content to users based on their geographic locations, the origin of the web content, and content delivery server availability.

Key features and concepts of CDNs include:

  1. Edge Servers: Distributed servers located closer to end users that cache and serve content, reducing the distance data must travel.

  2. Caching: Temporary storage of frequently accessed content at edge locations to reduce origin server load and improve response times.

  3. Load Distribution: Distribution of user requests across multiple servers to prevent any single server from becoming overwhelmed.

  4. Origin Shield: Intermediate caching layer between edge servers and the origin server to reduce origin traffic.

  5. Dynamic Content Acceleration: Techniques for optimizing delivery of non-cacheable content through route optimization and TCP optimization.

  6. Security Features: DDoS protection, web application firewall capabilities, and bot mitigation services.

  7. Global Reach: Presence in multiple geographic regions to serve international audiences with low latency.

How CDNs work:

  1. User requests content from a website
  2. DNS resolves to the nearest CDN edge server
  3. Edge server checks if content is cached locally
  4. If cached, content is delivered directly from edge server
  5. If not cached, edge server fetches content from origin server
  6. Content is delivered to user and cached for future requests

Benefits of CDNs include:

  • Improved Performance: Reduced latency and faster page load times
  • Scalability: Ability to handle traffic spikes without origin server impact
  • Cost Reduction: Reduced bandwidth costs and server load
  • Availability: Improved uptime through redundancy and failover
  • Security: Protection against DDoS attacks and malicious traffic

CDNs are commonly used for:

  • Website acceleration
  • Video streaming delivery
  • Software distribution
  • Mobile application content delivery
  • API response optimization
  • E-commerce platform performance

Organizations use CDNs to improve user experience, reduce infrastructure costs, enhance security, and ensure reliable content delivery to global audiences. Major CDN providers include Cloudflare, Akamai, Amazon CloudFront, and Google Cloud CDN.

Related words: Load Balancing DNS Caching