How does CDN understand it?

I just know the definition and function of cdn recently, but I still don"t know what special function it has. It is said on the Internet that it can solve the problem of cross-operator and cross-region access, and the access delay is greatly reduced. Most of the requests are completed at the CDN edge node, and CDN acts as a diversion, reducing the load on the origin server
but the website itself does not save copies of pictures or other files in the site locally, so that when users visit the site again, the browser does not have to download all the files, reducing the number of downloads means increasing the speed of page loading.
limitation of cdn: its disadvantage is also obvious: when the website is updated, if the data on the CDN node is not updated in a timely manner, even if the user uses Ctrl + F5 in the browser to invalidate the cache on the browser side, the user access exception will occur because the CDN edge node does not have the latest Synchronize data. At this point, we need to make mandatory updates to CDN on the server side
so why do we need cdn?

Cdn
Mar.28,2021

not all accesses are cached, and a large number of accesses are actually the first time, and not many people visit the same resource repeatedly.

moreover, the local browser cache can only hit the resources on the site that are used to build UI, and the hit rate for content that updates quickly is still very low. (for example, Weibo pictures, basically you refresh a few seconds is another pile of pictures).

CDN actually uses DNS, to resolve to different IP addresses (CDN servers) for users from different sources. The access is usually faster, while the content is cached in the server.

of course, without caching, CDN simply acts as a middleman (this is called reverse proxy ), because it is faster for users to access CDN than to access the original server. (for example, dynamic content is not cached)

and CDN can also break down the access pressure (there are load balancers within large websites, which is almost the same as reverse proxy, except that requests from the same entry are distributed to different servers for processing), and even resist DDoS attacks.

so there are still many benefits of CDN. Some large websites do not use CDN services, but put servers in multiple computer rooms, which is essentially the same reason.


CDN can decompose the pressure of static resource reading on the server and speed up the access speed of users. Because CDN uses DNS to resolve to different storage servers closest to the user. The speed of user access will be accelerated, and because each node server also stores our resource files, the server that accesses cdn greatly reduces the pressure on our own servers. In addition, basically, most websites have a lot of static resources, compared with less dynamic ones, so it is cost-effective to use CDN. After all, the loading speed is fast, and the user experience is good

CDN Content Delivery Network content distribution network. Using some DNS algorithms, you can access the corresponding node server resources nearby, which can speed up the access speed and reduce the load pressure on the main service cluster. It is often used in high concurrency scenarios. For example, if the main server of a business is in Shenzhen, and you are in Langfang, there is a corresponding node server in Langfang, and CDN will send Langfang's machine IP to your client, so you don't have to parse to the server in Shenzhen.


the full name of: Content Delivery Network or Content Ddistribute Network, is content delivery network

:

CDN

:

Internet

CDN

:

:






:CSSAPIs

Google

CDN:

CDN:

ISPCDNIDCCDN

CDN

100%

CDN

CDNCDN7x24
CDN


and CDN is a smart courier. TA is not running around with brute force, bumping into
TA has also built a lot of delivery points, the nearest express (cache)
TA is good at optimizing the delivery path (scheduling) and will also repackage the package more reasonably (protocol optimization)
no matter where the user is in the world, as long as he is connected to the network. CDN service is like moving the origin server in front of users, the whole world is within reach!

CDN is to play the role of escort and accelerator, faster, more accurate and ruthless trigger information and reach every user, bringing a more extreme user experience.

Menu