CDN (Content Delivery Network) คือเครือข่ายของเซิร์ฟเวอร์ที่กระจายอยู่ตามภูมิศาสตร์ ซึ่ง cache และ serve เนื้อหาจากตำแหน่งที่อยู่ใกล้ผู้ใช้ — ลด latency และลดภาระของ origin server มันเป็นคอมโพเนนต์สำคัญสำหรับการส่งมอบเนื้อหาที่รวดเร็วในระดับโลก
CDN ทำอะไร
A CDN caches content at EDGE locations (servers) around the world:
→ users get content from the NEAREST edge server (not the distant origin)
→ reduces LATENCY (shorter distance = faster) for global users
→ offloads the ORIGIN server (edges serve cached content → less origin load)
User → nearest CDN EDGE (cached? serve it) → on miss, fetch from origin, then cache
