CDN working logic is quite simple. First of all, the service that provides CDN has physical servers located all over the world. By these servers; Static content that does not change and dynamic content that changes on the main server of your site (ie in your hosting account) is cached at certain intervals. This cached data is sent from the nearest physical server to users visiting your site.
When you want to connect to a website that uses CDN, you get the data from the server closest to you. It keeps a copy of your site on servers around the world. Whoever is geographically closer to which server; displays the site from that server.
In fact, CDN hosting is a technology independent of your account. Therefore, wherever your site is hosted, if you have access to DNS Zone and Name Server areas in your hosting and domain accounts; It is possible to use CDN technology.
Advantages of Using a CDN
To get optimum benefit from CDN technology; It is essential that your site receives traffic from all over the world. Because only sites that receive visits from a certain part of Turkey, using CDN will not give the desired results. Because the main purpose of CDN, as we mentioned before; It is to provide data transfer from closer servers to users who are geographically far from the server where the site is hosted.
CDN Reduces Use of Traffic Resources;
We have mentioned before that a CDN service caches your site and transfers this cache to the visitor. Just as your browser downloads fixed fields such as footer and header on a site to your computer and does not request these contents from the server the next time you visit; CDN services also do not request the cached data from the main server again.
CDN Speeds Up Your Site;
One of the biggest problems of websites is the problem of "increasing site speed". Almost all webmasters care about the content; It also cares about the fast opening and loading of the site. Because the value named “bounce rate” is negatively affected on websites that are opened late or cannot be navigated quickly. In other words, the user leaves the page immediately. In sites using CDN services, page load speed and in-site browsing speed will naturally be higher as the data is shared between different physical servers.
CDN Protects Your Site Against Attacks;
One of the biggest problems of a website is getting hacked. No matter how much you secure the server where your site is hosted, it is very difficult to prevent repeated visits to your site by bots. In sites using CDN technology, since such malicious traffic will remain on CDN servers; your main server will not be loaded and your site will not be damaged. Moreover, your traffic resources will not be consumed unnecessarily.