Introduction to CDN
Understand CDN and formalize the requirements for a CDN design.
We'll cover the following
Solution
The solution to all the problems above is Content Delivery Network (CDN). A CDN is a group of geographically distributed proxy servers. A proxy server is an intermediate server between a client and the origin server. The proxy servers are placed on the
We can bring data near the user by placing a small data center near the user and storing copies of the data there. CDN mainly stores two types of data:
Let’s look at the different ways CDN is solving the problems above:
- Latency: CDN brings the content closer to end-users thus reducing the physical distance and consequently the latency.
- Data-intensive applications: Since the path to the data includes only the ISP and the nearby CDN components, there is no issue in serving a large number of users through a few CDN components in a specific area. As shown below, the origin data center will have to provide the data to local CDN components only once whereas local CDN components can provide data to different users individually. No user will have to download their own copy of data from the origin servers.
Various streaming protocols are used to deliver dynamic content by the CDN providers. For example, cdnsun uses the RTMP (Real-Time Messaging Protocol), HLS (HTTP live streaming), RTSP (Real-Time Streaming Protocol), etc., to deliver dynamic content.
- Data center resources: CDN is used to serve popular content. Due to this reason, most of the traffic is handled at the CDN instead of the origin servers. Thus, the load on origin servers is shared by different local/distributed CDN components.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy