Cơ BảnSystem Design iconSystem Design

CDN là gì và nó cải thiện hiệu năng hệ thống như thế nào? (What is a CDN and how does it improve system performance?)

CDN (Content Delivery Network) là mạng lưới các server phân tán địa lý, lưu trữ bản sao (cache) của static content (hình ảnh, JS, CSS, video) tại các edge nodes gần người dùng nhất.

  • Khi user request một file, CDN route request đến edge node gần nhất thay vì origin server, giảm latency đáng kể – ví dụ user ở Việt Nam truy cập CDN node Singapore thay vì origin server ở US.
  • Ngoài latency, CDN còn giảm tải cho origin server, tăng throughput toàn cầu, có built-in DDoS protection, và cải thiện availability (cache vẫn serve được khi origin tạm thời down).
  • CDN phù hợp nhất cho static assets và video streaming; dynamic content cũng có thể cache nếu dùng Edge Computing (Cloudflare Workers, Vercel Edge).
  • Các CDN lớn: Cloudflare, AWS CloudFront, Akamai, Fastly.

Xem toàn bộ System Design cùng filter theo level & chủ đề con.

Mở danh sách System Design