ARTICLE - CDN Acceleration

How to Choose a CDN: A Four-Step Decision by Business, Region, Billing, and Features

There are too many CDN vendors to count: Cloudflare, AWS CloudFront, Alibaba Cloud, Tencent Cloud, Akamai, Bunny CDN, and more. Each one claims to be fast, reliable, and cheap. The truth is you do not need to research every vendor — you just filter in four steps and shrink the candidates from a ton to one or two. The four.

2026-08-12 16IDC Original

How to Choose a CDN: A Four-Step Decision by Business, Region, Billing, and Features

There are too many CDN vendors to count: Cloudflare, AWS CloudFront, Alibaba Cloud, Tencent Cloud, Akamai, Bunny CDN, and more. Each one claims to be "fast, reliable, and cheap." The truth is you do not need to research every vendor — you just filter in four steps and shrink the candidates from "a ton" to "one or two." The four steps are: business type → region coverage → billing model → feature needs. To first understand what a CDN is and what it solves, see the CDN beginner's guide and how CDN works.

Step 1: Filter by business type

  • Static site / images / software downloads: Purely static content caches with very high hit rates, so almost any CDN works. Focus on price and traffic allowances; this is where free and cheap options abound.
  • Dynamic site / API: Dynamic content cannot be cached directly, so look at the vendor's dynamic acceleration (DCDN) and origin-optimization abilities; see CDN origin-pull basics.
  • Video / live streaming: Requires large bandwidth, segment caching, and push/pull streaming support — a professional scenario. Pick a vendor with video acceleration experience; see video streaming CDN acceleration.
  • Cross-border / going overseas: Check overseas node count and backbone quality, and keep compliance in mind; see overseas CDN acceleration.

Step 2: Filter by region coverage

  • Nodes should be where your users are. Domestic China business means checking mainland nodes and ICP filing (a mainland CDN requires ICP filing); overseas business means checking node density across continents.
  • Less common regions (South America, the Middle East, Africa) also need coverage, or local users get a poor experience. Compare the node maps in the CDN provider selection guide.

Step 3: Filter by billing model

Billing model Best for Characteristics
Pay per traffic Spiky traffic, occasional peaks Flexible, but peaks are expensive
Pay per peak bandwidth Stable, always-on traffic Low unit price, but peak-based bills can explode
Packages / yearly plan Small sites with a fixed budget Simple and predictable, but may waste capacity

Tip: do not stare at the unit price — calculate the total monthly cost. Peak-bandwidth billing gets expensive under sudden traffic; small sites are safer starting with per-traffic or packages. For cost optimization, see CDN cost optimization guide.

Step 4: Filter by feature needs

  • Security (WAF / anti-DDoS): If you need protection, pick a vendor with WAF; see CDN security protection features.
  • Image / audio-video processing: For scaling, compression, or transcoding, check whether the vendor has built-in image optimization and media processing.
  • Logs and monitoring: For fine-grained access logs and real-time monitoring, compare each vendor's log export and analysis capabilities; see CDN log analysis and monitoring.
  • Usability: Whether the console is friendly, whether the API is complete, and whether multi-CDN switching is supported to avoid vendor lock-in. For an overall comparison, see CDN comparison.

CDN decision table

Your situation Look at first Suggested direction
Small traffic, personal / blog Free tier, price Free or low-cost CDN
Domestic China e-commerce / content Mainland nodes, ICP filing, stability Mainstream Chinese cloud CDN
Overseas / cross-border Overseas nodes, DCDN International or overseas-focused CDN
Video / live streaming Large bandwidth, video optimization Professional video acceleration vendor
Security-sensitive WAF, anti-DDoS CDN with strong security capabilities

Common selection mistakes

These are the mistakes beginners make most often; here is how to avoid them:

  1. Look at unit price only, not total cost: One vendor's per-traffic price is lowest, but origin-pull traffic, request counts, and bandwidth caps all cost extra — the total bill may be higher.
  2. Chase "lots of global nodes": More nodes does not mean closer to your users; focus on node and route quality in your target regions, not the total count.
  3. Ignore origin-pull bandwidth: A CDN accelerates the path from user to edge node, but the bandwidth and cost from origin to edge (origin-pull) also count — especially for video and large-file sites.
  4. Enable advanced features like WAF too early: Small sites should get acceleration working first, then add security and image processing on demand so you do not pay for unused features.
  5. No switch-over plan: Document your DNS and certificate configuration so you can quickly fall back to origin or switch vendors when something breaks; see CDN origin-pull basics.

There is no "optimal" CDN, only "the best fit for the current stage" — start using one, optimize as traffic grows, and you will often do better than trying to get it perfect on the first try.

  • Is a free CDN enough:For small sites, yes; just note that free tiers often cap requests, traffic, or features and do not guarantee an SLA.
  • Should I use multiple CDN vendors:For large traffic and high availability, active-standby or traffic splitting works, but it raises maintenance cost — not recommended for small sites.
  • Does a CDN change my domain:Generally no. You integrate via a subdomain such as cdn.example.com, and the main domain stays unchanged.
  • Is switching CDNs troublesome:Mostly it is changing DNS and reconfiguring; if you sort out caching and certificates at the old vendor first, it is quick. See the CDN setup guide.
  • CDN cache makes updates invisible. What now:Purge or preheat the cache, or set a sensible cache duration and versioning (such as hashed filenames); see CDN cache strategy.

Integration & Code Examples

Example 1: How to verify the 'features' step

URL="https://probe.example.com/assets/app.js"
HOST="${HOST:-probe.example.com}"
# 1) HTTP version in use
curl -s -o /dev/null -w "http_version=%{http_version}\n" "$URL"
# 2) Usable cache markers
curl -sI "$URL" | grep -Ei "^(cache-control|age|x-cache|cf-cache-status|vary):" | tr -d '\r'
# 3) Compression and first byte
curl -s -o /dev/null --compressed -w "ttfb=%{time_starttransfer}s bytes=%{size_download}\n" "$URL"
# 4) Chain completeness, which older clients expose fastest
echo | openssl s_client -connect "$HOST:443" -servername "$HOST" 2>/dev/null \
  | grep -m1 "Verify return code"
# Expected output: Verify return code: 0 (ok)

Half the feature list is verifiable without reading docs: missing HTTP/2 or 3, cache headers or compression all need confirming as tier limits before signing.

Example 2: Estimate origin volume from traffic and hit rate

import os

requests = float(os.environ.get("MONTH_REQUESTS", "0"))
avg_kb = float(os.environ.get("AVG_RESPONSE_KB", "0"))
hit = float(os.environ.get("HIT_RATIO", "0.8"))
origin_share = 1 - hit

total_gb = requests * avg_kb / 1024 / 1024
print(f"monthly egress about {total_gb:.1f}GB")
print(f"origin about {total_gb * origin_share:.1f}GB (hit rate {hit:.0%})")
# Request-based billing needs the request count too, not just the volume
print(f"billable requests per month: {requests:,.0f}")
print(f"at a 90% hit rate origin drops to about {total_gb * 0.1:.1f}GB")

Turning requests times average response size into egress and origin volume is the only way to compare traffic-based, bandwidth-based and request-based billing on equal terms.

Folding Four Cost Items into One Monthly Comparison

The same traffic bills differently under the three metering models, so convert everything into monthly egress, monthly origin volume, monthly request count, and bandwidth peak before applying any unit price. The script uses egress = requests × average response size, and origin volume = egress × (1 − hit ratio).

Cost item Billing unit Definition used here How to convert when comparing
Egress GB Monthly requests × average response size Normalise to GB, then multiply by unit price
Origin volume GB Egress × (1 − hit ratio); 20% at an 80% hit ratio Drops to 10% once the hit ratio reaches 90%
Request count Per ten thousand / million Counted per request, independent of size Cost it separately for small-file sites
Bandwidth peak Mbps (95th percentile is common) Average of the top 5% of intervals in a month Peak-heavy traffic has to be back-calculated into a monthly fee

The two items most often left out are origin volume and request count: the first is roughly a fifth of egress on a static site, and the second can cost more than traffic on a small-file site. Add-ons such as WAF, image processing and log export are priced per plan, so give them their own column instead of blending them into a traffic rate.

Four Things You Can Test Before Signing: HTTP Version, Cache Headers, Compression, Chain

Only the technical items can be verified during selection, and running curl and openssl against a test hostname beats reading a feature list. Check whether http_version reports 2 or 3; when it does not, confirm whether the plan or the node is the limit.

Then look for Cache-Control, Age, X-Cache or cf-cache-status, and Vary in the response. Those fields are the entry point for later troubleshooting; without a readable cache marker, hit-ratio problems can only be guessed at.

Compression and first byte go together: add --compressed and compare size_download with ttfb to see whether the edge really compresses. For the chain, check that Verify return code is 0, since older clients surface a missing intermediate certificate first.

Limitations

  • Tip: do not stare at the unit price — calculate the total monthly cost.
  • Figures reflect public information at publication; terms, prices and quotas follow the provider's current published terms.
  • This article reflects public information as of 2026-08-12; terms, prices and quotas follow the provider's current published terms.

FAQ

When does peak-bandwidth billing blow up the invoice?

Steady always-on traffic suits peak billing; bursts pay most. The peak hour becomes the billing base, so a single campaign lifts the whole month. Metered traffic bills linearly at a higher unit price, so convert requests times average response size into monthly egress and estimate origin pulls at an 80% hit ratio.

Which CDN suits video versus static assets?

Use the bottleneck to split them: video needs bandwidth and segment caching, while static assets need hit ratio and unit price. Almost any CDN caches pure static files, so compare included traffic; video and live streams need segment caching, stream-handling experience and fatter pipes, while dynamic sites live or die on origin optimisation.

Is a filing a prerequisite for a domestic CDN?

Yes for mainland audiences, and the filer must own the domain. A domestic CDN accelerated domain has to be a filed domain, so without one you start on overseas nodes. Documents are checked against provincial rules, and cross-border businesses should simply pick an international vendor instead of treating filing as the only gate.

When should a small site avoid multi-CDN setups?

Skip it when the overhead outweighs the availability gain. Two certificates, two cache rule sets and duplicate monitoring usually cost more than a small site recovers; reserve multi-CDN for heavy cross-region traffic or hard SLA requirements, write the rollback steps first, and never add a second line while still flushing caches by hand.

Related Providers

  • Cloudflare: start DNS and caching on the free tier and check whether origin pulls stay unmetered at that level.
  • AWS CloudFront: compare same-region and cross-region origin pull rates when the site already runs inside AWS.
  • Aliyun CDN: check covered cities plus filing and real-name requirements when most visitors come from mainland China.
  • Bunny CDN: review minimum top-up and tiered unit prices when traffic stays modest but per-GB cost control matters.

Community & Resources

Learning resources and tools

Original source: 16IDC Original ↗