CDN Strategy: Speed + Resilience
CDN bukan cuma untuk speed. Setup yang bener juga jadi defense layer anti-blokir.
CDN Options
Cloudflare
- Pricing: Free plan generous, Pro $20/mo, Business $200/mo
- Coverage: 300+ POP global, banyak di Asia
- Bonus: DDoS protection, WAF, Workers (serverless)
- Catch: free plan ga ada port 587 (kalau butuh email via CF)
BunnyCDN
- Pricing: pay-as-you-go ($0.01-0.05/GB)
- Coverage: 100+ POP, decent Asia
- Bonus: cheap, transparent pricing
- Catch: ga ada free DDoS protection
AWS CloudFront
- Pricing: complex tier, ~$0.085/GB ke Asia
- Coverage: solid
- Bonus: integrasi AWS S3/EC2 native
- Catch: pricing rumit, learning curve
Multi-CDN Strategy (Advanced)
Pakai 2 CDN paralel via DNS routing: - Primary: Cloudflare (90% traffic) - Secondary: BunnyCDN (10% traffic, auto-failover)
DNS provider seperti NS1 atau Route53 punya health check — kalau primary down, traffic auto-route ke secondary.
Origin Setup
Origin server jangan single point of failure: - Primary origin: Singapore (Vultr/DigitalOcean) — low latency Indonesia - Backup origin: Frankfurt or US — kalau Asia regional issue - CDN bakal cache dari origin terdekat yang available
Cache Strategy
# nginx config snippet
location ~* \.(js|css|png|jpg|webp|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
location ~* \.(html|json)$ {
expires 5m;
add_header Cache-Control "public, must-revalidate";
}
CDN respect headers — static assets cached 1 tahun di edge, HTML refresh 5 menit.
Anti-Blokir Implication
CDN orange-cloud (CF proxied) ga bypass blokir di level domain (Komdigi block via DNS resolver Indonesia, ga sampe ke CF).
Tapi CDN help dalam scenario: 1. IP rotation — kalau Komdigi block by IP (rare), CF IP berubah-ubah 2. DDoS mitigation — kalau ada serangan untuk down site lo 3. Geo-routing — serve konten beda per region (mis. Indonesia ke mirror)
Cost Estimate Bisnis Medium
- 100GB/month bandwidth
- 1M requests
- Cloudflare Free: $0
- BunnyCDN: ~$1-5
- AWS CloudFront: ~$8-12
Recommendation Stack
- DNS: Cloudflare (free, fast, easy management)
- CDN: Cloudflare proxy + cache (free plan cukup)
- WAF: Cloudflare Bot Fight Mode (free tier)
- Origin: Vultr Singapore $6/mo (small) atau $20/mo (medium)
Total bulanan ~$10-30 untuk bisnis baru. Scale naik seiring traffic.
📚 Sumber Resmi & Referensi
- Database TrustPositif — Cek status blokir official
- Aduan Konten Komdigi — Banding kalau false positive
- Cloudflare DNS — Manajemen DNS dengan TTL fleksibel
🔗 Artikel Terkait
- Cloudflare vs Nawala: Apakah CF Bisa Bypass Blokir? — Mitos & fakta tentang Cloudflare proxy dan blokir Komdigi — kenapa orange cloud kadang bantu, kadang
- DNS Strategy: TTL Pendek vs Panjang untuk Anti-Blokir — Perbandingan TTL DNS rendah dan tinggi — kapan pakai 300 detik vs 86400, dan tradeoff-nya. TTL (Time
- SSL Certificate untuk Domain Indonesia: Free vs Paid — Pilih SSL cert tepat — Let's Encrypt gratis vs DigiCert/Sectigo berbayar, plus EV cert untuk e-comme