In this topic we shall see what is CDN and why it is used.
CDN stands for Content Distribution Network
Suppose you have a website that is very popular. Lots of people will be visitng the website from different locations. Thus making your website slow to handle all the requests. SO once your website becomes slow, people will stop visiting your website.
12.1 How do we overcome this situation?
We use CDN.
CDN will take static content of your website like pictures and videos, and put them near your location. There is multiple content distribution network available like amazon, rackspace etc. These companies will be having servers all over the world. So when you visit a website, you will be loading from them, instead of directly loading from your website. Thus taking the load off your server.
12.2 Is CDN is same as a web host?
No, CDN is not same as web host. Web host is need for a website to host. CDN will help to store the cache content and help to improve performance.
12.3 What are the benefits of using a CDN?
1. It will bring down the server load
2. 100% up time
3. Reducing bandwidth costs.
4. Improving website security.
5. Improving website load times.
12.4 How does a CDN work?
A CDN is a server, it stores the most frequently visited resources in its server. So when a visitor requests for that resource, it will be delivered immediately.
12.5 Below are some of the free public CDN services
1. Google CDN
2. Microsoft CDN
3. jsDelivr CDN