CDNs 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.
Similar to CDNs, Edge servers are distributed to multiple locations around the world. But unlike CDNs, which store static content, some Edge servers can run small snippets of code.
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
which store static content, some Edge servers can run small snippets of 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.
As we discussed earlier, the server refers to the main computer that stores and runs the original version of your application code.
CDNs 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
unlike CDNs, which store static content, some Edge servers can run code
both caching and code execution
main computer that stores and runs the original version of your application code
When an origin server receives a request, it does some computation before sending a response.
The result of this computation work can be moved to a CDN
Content Delivery Network
static content (such as HTML and image files)
When a new request comes in, the closest CDN location to the user can respond with the
reduces the load on the origin
Toughts & Comments
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.