The Vercel Edge Network sits in-between the internet and your Vercel deployments. This type of network topology is sometimes called a Content Delivery Network or CDN.
The Vercel Edge Network has many responsibilities, but most importantly, it is responsible for routing requests to the correct Serverless Function or Static File output of your Builds. The Vercel Edge Network is a CDN with the ability to execute functions at the edge.
In order to route requests as fast as possible, the Edge Network is running in dozens of locations across the world. In all of these locations (called Regions), you can create Deployments that create Builds outputting Serverless Functions and/or Static Files. The full list of regions can be found here.
In turn, the Edge Network will automatically forward incoming requests to the closest location in which your Serverless Function is running (Static Files are always distributed across the whole network, thus not location-specific).
In the event that the Serverless Function of your deployment is not created in the requested region, the request is forwarded to the closest region that contains your deployed Serverless Function.
The Vercel Edge Network caches your content at the edge in order to serve data to your users as fast as possible.
Aside from routing your requests to the correct destination, the Edge Network also takes care of a few other important aspects of a working Deployment:
All of these actions are performed automatically with careful attention to performance (ensured by our choices of technology). In turn, we highly recommend not implementing SSL termination or compression in your own code, as it would be unnecessary.
The Edge Network supports the following protocols (negotiated with ALPN):