Introduction to a CDN
Learn about CDNs, and formalize the requirements for a CDN design.
Proposed solution
The solution to all the problems discussed in the previous lesson is the 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 close to 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 solves the discussed problems:
- High latency: CDN brings the content closer to end users. Therefore, it reduces the physical distance and latency.
- Data-intensive applications: Since the path to the data includes only the ISP and the nearby CDN components, there’s 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.
Note: Various streaming protocols are used to deliver dynamic content by the CDN providers. For example, CDNsun uses the Real-time Messaging Protocol (RTMP), HTTP Live Streaming (HLS), Real-time Streaming Protocol (RTSP), and many more to deliver dynamic content.
- Scarcity of data center resources: A 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. So, different local or distributed CDN components share the load on origin servers.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.