AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() ![]() But unlike CDNs, which store static content, some Edge servers can run small snippets of code. Similar to CDNs, Edge servers are distributed to multiple locations around the world. CDNs could be considered part of "the Edge" because they store static content at the fringe (edge) of the network. The Edge is a generalized concept for the fringe ( or edge) of the network, closest to the user. In Next.js, since pre-rendering can be done ahead of time, CDNs are well suited to store the static result of the work - making content delivery faster. It also makes it faster for the user because the response comes from a location geographically closer to them. This reduces the load on the origin because the computation doesn’t have to happen on each request. When a new request comes in, the closest CDN location to the user can respond with the cached result. Content Delivery NetworkĬDNs store static content (such as HTML and image files) in multiple locations around the world and are placed between the client and the origin server. The result of this computation work can be moved to a CDN (Content Delivery Network). When an origin server receives a request, it does some computation before sending a response. We use the term origin to distinguish this server from the other places application code can be distributed to, such as CDN servers and Edge servers. ![]() Let’s see what each of these are: Origin ServersĪs we discussed earlier, the server refers to the main computer that stores and runs the original version of your application code. In the case of a Next.js application, your application code can be distributed to origin servers, Content Delivery Networks (CDNs), and the Edge. You can think of the network as linked computers (or servers) capable of sharing resources. It’s helpful to know where your application code is stored and run once it’s deployed to the network. ![]()
0 Comments
Read More
Leave a Reply. |