How it works?
The CDN is a collection of servers or a network of all the servers that deliver data all over the world to the web user. It has three main components, each component has its own value and role to play.
The first one is the Origin server which stores all the data spread all over the world. It is the main server that handles every delivery and also it maintains the updated version of data.
The second one is the Edge server which stores temporary data means it stores a copy of the original data temporarily. also, It is the one that delivers the data to the web user. The number of Edge servers is many, the nearest Edge servers deliver the data to the web user so that there should not be any delay in between the loading of the page on the web.
The third one is a DNS server that keeps track of the IP addresses. whenever a user sends a request through the internet on the web browser then in response to that request the Origin Server gives the IP address. By accessing that IP address the user gets their data on the web.