CDN Bandwidth and Cost Estimation
You'll learn: How to estimate the cost of using a Content Delivery Network (CDN) based on traffic patterns and geographic reach.
What Is CDN Cost Estimation?
A CDN (Content Delivery Network) distributes your static content (images, videos, CSS, JavaScript) across servers worldwide to reduce latency. But CDNs charge based on data transferred—so you need to estimate how much bandwidth you'll use and what it will cost.
This is a direct application of bandwidth estimation (which you've already learned) combined with understanding CDN pricing models.
The Core Formula
Monthly CDN Cost = Total Data Transferred × Price per GB
But the price per GB varies by:
- Geographic region (North America is typically cheaper than Asia-Pacific)
- Traffic volume (bulk discounts at higher tiers)
- CDN provider (Cloudflare, AWS CloudFront, Fastly have different rates)
Working Through an Example
Imagine a video streaming service:
- 10 million users watch 2 videos/day
- Average video size: 50 MB
- 60% traffic from North America (0.095/GB)
Daily bandwidth: 10M users × 2 videos × 50 MB = 1,000,000 GB = 1 PB/day
Monthly cost:
- NA: 1 PB × 30 days × 0.6 × 1.53M
- EU: 1 PB × 30 days × 0.4 × 1.14M
- Total: ~$2.67M/month
Geographic Distribution Matters
Like shipping costs varying by destination, CDN prices differ by region. Always break down your user base geographically for accurate estimates—a global audience costs more than a regional one.
Key Takeaway: CDN costs scale with data transferred and vary by region; estimate by multiplying your bandwidth projections by per-GB pricing for each geographic segment.