xfpoint

What is CDN?

CDN stands for content delivery network or content distribution network and is mainly used to serve the static content of a web page like images, media, JavaScript and CSS.

How CDN Works?

The CDN companies strategically position their server locations in a manner to deliver static content to users from the nearest location. This helps in reducing the web page load time for any website as well as helps in downloading the static content parallelly from a CDN.

CloudFront is a CDN service provided by the Amazon Web Services and here are its edge locations.

Official Source.

The CDN stores a copy of each requested resources (as cache) on the network of servers in each of the geographical location to serve the content from the nearest location to the user.

When a visitor makes a request a webpage of a website, the request is processed by the host server and reverts back the HTML content. If the webmaster has configured the CDN, the HTML will have reference to the static content from a CDN edge server thus allowing the browser to process those elements parallelly from the CDN edge server. This makes the hosting server free to serve more page requests.

Here is an example of waterfall model fetching content in parallel mode from a CloudFront CDN.

So all the requests form a CDN URLs are being served by CloudFront thus the hosting server can serve a lot more requests and browsers can fetch content from host server as well as CDN edge servers to render elements parallelly.

Advantages of using a CDN:

Disadvantages Of using a CDN:

 

Exit mobile version