架站教學:內容傳遞網路 CDN
什麼是內容傳遞網路 (Content Delivery Network,CDN)
CDN,Content Delivery Network,通過全球節點快取源站內容,達成就近存取,讓使用者在存取網頁、圖片、影片等物件的速度加快,並且根據地區來分散存取節點,達成分流的效果,同時降低源站的壓力。

上圖可以看到,在台北的User 1 若要存取南美洲的內容,原本需要通過DNS 並經過路由繞到南美洲存取,中間的延遲時間較高。但如果透過CDN,就可以先將資料預先Cache(快取)在最靠近台灣的CDN 節點上,User 1 只要去該節點,即可取得網站資料。並且可以透過這個方式來達成全球分流,不必都到同一個伺服器取得資料,可以很大程度的緩解伺服器壓力,從而避免伺服器無法正常運作的狀況。
圖:CDN 架構示意圖
CDN 實務操作
(1)選擇CDN
(2)要使用CDN 的服務,必須創建域名
(3) 填寫想要通過CDN 分發的網域域名;一般網站內容可以選擇圖片小文件即可;分發地區也可以根據自己的需求選擇。
註:請注意,若要在中國境內使用CDN,務必要準備ICP 備案,源站資訊也需要填寫。
(4)根據自己的情況填寫源站資訊
(5)完成後將CDN 的cname 地址解析到DNS cname 紀錄
(6)完成CDN 佈署後在管理選單內,可以針對回源、Cache、Https 等做設置
(7)使用nslookup,回傳Alibabacloud 的CDN cname 域名及CDN 節點IP
在這幾篇寫了很多內容,主要是在Auto Scaling 的設定步驟其實較為繁多,但如果有具體的邏輯也可以很好的針對需求使用這這個服務,而不至於太陽春,在CDN 方面阿里雲提供了一個簡單易於設定的平台使用,相較於筆者在使用其他雲端與CDN 廠商經驗而言,CDN 在操作上對於新手來說有很大的優勢。
若已使用過 CDN 功能者,想測試阿里雲流量服務,可以把握機會申請 1TB 流量包試用活動 https://www.alibabacloud.com/tc/campaign/cdn&apsaravideo-free-trial
免費試用方案
還等什麼呢?趕緊註冊申請免費試用方案,動手探究阿里雲的功能吧!
本篇作者為海爾雲端科技(Alibaba Cloud Channel Partner)技術團隊。
Read previous post:
Read next post:
-
-
Alibaba Cloud TC Content
43 posts | 5 followers
Follow
-
-
Alibaba Cloud TC Content
43 posts | 5 followers
Follow
Related Products
-
Content Delivery Solution
Save egress traffic cost. Eliminate all complexity in managing storage cost.
Learn More -
Edge Security Acceleration (Original DCDN)
Edge Security Acceleration (ESA) provides capabilities for edge acceleration, edge security, and edge computing. ESA adopts an easy-to-use interactive design and accelerates and protects websites, applications, and APIs to improve the performance and experience of access to web applications.
Learn More -
Secure Content Delivery Solution
Accelerate static and dynamic web content in a fast, reliable, and safe way using Secure DCDN (Dynamic Route for CDN)
Learn More -
Media Solution
An array of powerful multimedia services providing massive cloud storage and efficient content delivery for a smooth and rich user experience.
Learn More
More Posts by Alibaba Cloud TC Content