Loading...
Edge functions run in many locations close to users, often on a lighter runtime, while regular serverless functions run in one region with a full server runtime.
When each request needs data from a single-region database, because the round trips to it cancel out the shorter distance to the user.
Redirects, auth checks, A/B routing, header changes, personalization from cookies and serving cached or cheaply rendered pages.