How Content Delivery Network(CDN) work?

In a Content Delivery Network, the origin server contains the original version and the edge servers are distributed across various location around the world. Below is the step by step process of how CDN’s work:

  • Content Replication:
    • Web content, such as images and videos, is duplicated and stored on multiple servers globally.
  • Geographic Distribution:
    • These servers, part of the CDN, are strategically placed in various locations around the world.
  • User Request:
    • When a user requests content, the CDN automatically determines the nearest server to fulfill the request.
  • Cache Mechanism:
    • Frequently requested content is stored on these servers, reducing the need to fetch it from the original server.
  • Load Balancing:
    • Traffic is evenly distributed among multiple servers, preventing overload on any single server.
  • Minimized Latency:
    • By serving content from nearby servers, the CDN reduces the time it takes for content to reach the user.

Example:

Let suppose when there is someone in Canada request on our website which might be hosted in USA, they will be served from the closest edge location such as the London edsge location. This much quicker than having the visitor make a complete request to the origin server which will increase the latency.

Example of CDN

Designing Content Delivery Network (CDN) | System Design

In the digital age, where online content material is king, the importance of delivering a seamless and rapid user experience can not be overstated. Content Delivery Networks (CDNs) play a vital role in attaining this aim by distributing content material strategically throughout servers globally. This article will guide you through the process of designing a Content Delivery Network.

Important Topics for Designing a Content Delivery Network

  • What is a Content Delivery Network (CDN)?
  • Why use a Content Delivery Network (CDN)?
  • How Content Delivery Network(CDN) work?
  • Requirements for Content Delivery Network(CDN):
  • Uses Case Diagram for Content Delivery Network(CDN)
  • Capacity Estimation for Content Delivery Network (CDN)
  • Low-Level Design (LLD) for Content Delivery Network(CDN)
  • High Level Design (HLD) for Content Delivery Network(CDN)
  • Database Design for Content Delivery Network(CDN)
  • API used for Content Delivery Network (CDN)
  • Microservices used for Content Delivery Network (CDN)
  • Scalability used for Content Delivery Network(CDN)
  • Conclusion

Similar Reads

1. What is a Content Delivery Network (CDN)?

...

2. Why use a Content Delivery Network (CDN)?

The uses of CDN are:...

3. How Content Delivery Network(CDN) work?

In a Content Delivery Network, the origin server contains the original version and the edge servers are distributed across various location around the world. Below is the step by step process of how CDN’s work:...

4. Requirements for Content Delivery Network(CDN)

4.1 Functional Requirements for Content Delivery Network(CDN)...

5. Uses Case Diagram for Content Delivery Network(CDN)

Use Case of CDN...

6. Capacity Estimation for Content Delivery Network (CDN)

You can estimate the system capacity by analyzing certain data like traffic, number of user coming on site, storage requirements, etc. By analyzing whole data we can further calculate the required storage capacity for whole year. Here is the simplified calculation given:...

7. Low-Level Design (LLD) for Content Delivery Network(CDN)

Low-level design involves unique specifications for each thing of the CDN. It interprets high level design right into a greater granular blueprint, providing a guide for developers to put into effect individual modules....

8. High Level Design (HLD) for Content Delivery Network(CDN)

High-level design presents an architectural evaluation of the CDN. It makes a speciality of the interplay among important additives and the general flow of data....

9. Database Design for Content Delivery Network(CDN)

...

10. API used for Content Delivery Network (CDN)

API Code Implementation...

11. Microservices used for Content Delivery Network (CDN)

...

12. Scalability used for Content Delivery Network(CDN)

...

13. Conclusion

...