Skip to main content

What is a CDN ? How Does a content delivery network Work?




Introduction.

Latest Web sites and applications often need to provide amount of static content to end users.
This content includes images, style sheets, JavaScript, and video.
The increase in the number of static assets and the increase grows the bandwidth usage increases page load time decreased, depending on the size of the user's search experience, and reduce the usable capacity of the server.
Dramatically improving performance, reducing the page load time reduce the bandwidth and infrastructure costs, you can implement a content delivery network, And CDN cache these assets at a set of servers that are geographically distributed.

What is a CDN?

Content delivery network is a group of servers distributed geographically optimized to provide static content to end users. While this static content can be almost any type of data, CDNs are most commonly used to deliver web pages and related files, streaming video and audio, and large software packages.
A CDN consists of multiple PoPs (Point of Presence) in various locations, and each port can be configured with multiple edgeservers that cache the assets of the original or the host server.



When a user visits your website and request a static assets such as images or JavaScript file, the request is routed to the nearest edge server by the CDN, that content is available here. If the asset is not being cached at the edge server or a caching asset expire CDN caches bring the latest version from the source server or CDN edge servers around the other. If the CDN edge in the cache entry for the asset (if received moderate traffic from the Web site must generate the majority) will return the cached copy to the end user.
This geographically distributed users over can import content directly from the cache, minimizing the number of hops required to receive a static content near the edge. As a result, the faster latency and packet loss significantly reduces page load time significantly reducing the load on the source infrastructure.

Benefits of Using a CDN.

Origin Offload

Lower Latency for Improved User Experience

Manage Traffic Spikes and Avoid Downtime

Reduce Costs

Increase Security


How Does a CDN Work?




When a user visits a Web site, you first receive a response from the DNS server that contains the IP address of the host web server. Then your browser requests a web page content consisting of multiple static files such as HTML pages, CSS style sheets, JavaScript code and images.
Rollout of the CDN and manually "push (push out)" or CDN is (you both mechanisms discussed in the next section) automatically "pull" the asset as if the following CDN server Avon offload static assets web server links to point to a file that is hosted CDN creates a link to the static content again. If you are using a CMS such as WordPress rewrite links it can be achieved by using a third-party plug-ins, such as CDN Enabler.
PUSH CDN
PULL CDN


Many CDN supports custom domain so that you can create a CNAME record that points to the CDN endpoint in the following domains. The CDN routing requests to this endpoint (located much closer to the edge than the user's back-end server) The closest (Point of Presence) PoP user receives a user request. The PoP is configured with one or more of the CDN edge server deployment in Internet Exchange Points (IxP), a data center that is used to essentially Internet Service Provider (ISP) interconnect network. Then, the internal load balancer is one of the CDN edge server to route the request in the PoP and then provide content to users. 



Conclusion.

Content delivery network can be a quick and effective solution for improving the scalability and availability of Web sites. By caching your static assets in geographically dispersed network, network optimization, you can significantly reduce latency and page load times for end users. In addition, you can use the CDN absorb the user's request, and greatly reduce the use of bandwidth in response to the edge cache will reduce the bandwidth and infrastructure costs.
Thanks to being here.

Comments

Popular posts from this blog

Apt-fast for Increasing Download Speed while Installing and Updating Packages Ubuntu/Debian [Beginners Guide]

Have you ever experienced slow download speed when downloading or updating packages in Ubuntu even when your network connection is running fine? You encounter this issue especially when updating and installing packages for the first time after installing a new Ubuntu/Debian OS. However, there is a way to get around this by speeding up the download speed using apt-fast command in Linux. Apt-fast is a shell script wrapper for “apt-get” and “aptitude” that uses the power of either  axel  or  aria 2  download managers to accelerate the download process. It improves download performance by downloading packages simultaneously in parallel with multiple packages per connection. In this article, we will walk through some steps to install apt-fast in order to accelerate the update and downloading process in Ubuntu. We will use Ubuntu 18.04 LTS for describing the procedure mentioned in this article.   Step 1: Installing prerequisites We need to install...

How To Install PHP 7.4 and PHP 7.3 ON Ubuntu 18.04/19.04/16.04

How to Install PHP 7.4 / PHP 7.3 on Ubuntu?. This guide will help you Install PHP 7.4 / PHP 7.3 on Ubuntu 18 / Ubuntu 16 /  Ubuntu 19 . PHP is an open-source server-side scripting language which has been widely adopted for the creation of dynamic web pages. PHP is secure, fast, simple, efficient, flexible and a loosely typed scripting language. The PHP release 7.4.0 has been made available for the general public and for use in Production environments. How to install PHP 7.4 on Ubuntu 18.04 / Ubuntu 19.04 / Ubuntu 16.04 Step 1: Add PHP 7.4 PPA Repository We’ll add ppa:ondrej/php PPA repository which has the latest build packages of PHP. sudo apt-get update sudo apt -y install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt-get update Step 2: Install PHP 7.4 on Ubuntu 18/ Ubuntu 19/ Ubuntu 16 Install PHP 7.4 on Ubuntu 18.04/19.04/16.04 using the command: sudo apt -y install php7.4 Check version inst...