What is CDN
Content Delivery Network for faster loading
CDN — Content Delivery Network
CDN — a geographically distributed network of servers that caches and delivers content to users from the nearest node.
How CDN Works
| Stage | Description | |-------|-------------| | 1 | User requests a resource | | 2 | DNS routes to nearest edge server | | 3 | Edge server returns cached content | | 4 | If missing — request to origin server |
Content Types for CDN
- Static — images, CSS, JS, fonts
- Video — streaming, VOD
- API — response caching
- Dynamic — route optimization
Benefits
- 50-70% reduction in load time
- DDoS attack protection
- Reduced origin server load
- High availability
Popular Providers
- Cloudflare — free plan, protection
- AWS CloudFront — AWS integration
- Fastly — edge computing
- Akamai — enterprise solutions
- Bunny CDN — budget option