educative.io

Web Servers talking to CDN?Should it not be Client?

Why is the web server talking to CDN? I understood that the CDNs are localized and get hit before the Client hits web servers?Please clarify.


Course: https://www.educative.io/collection/10370001/4941429335392256
Lesson: https://www.educative.io/collection/page/10370001/4941429335392256/5697004751028224

Hi Roop G,

I agree with your observation that enabling direct communication between the user and the CDN is essential. Additionally, it is beneficial and recommended to establish a connection between the CDN and the web server when designing a newsfeed system. While the web server handles the dynamic generation of newsfeed pages, offloading static assets such as images, CSS, JavaScript files, and other associated resources to the CDN can be advantageous. Configuring the CDN to cache these static resources allows subsequent requests for the same content to be efficiently served directly from the CDN’s edge servers. This approach helps alleviate the load on the web server and enhances overall response times, contributing to an optimized user experience.

Considering your feedback, we have taken the necessary steps to incorporate your suggested point and make appropriate changes to the lesson.

Thank you for your feedback.

1 Like

Hi Bismillah,
thx for the detailed response. After going through the CDN building block it helps explain your point of view.
Cheers


Course: Grokking Modern System Design Interview for Engineers & Managers - Learn Interactively
Lesson: Unique IDs with Causality - Grokking Modern System Design Interview for Engineers & Managers

1 Like