What Is an Edge Function?
An edge function is a lightweight piece of code executed at a CDN edge location rather than at a central server. It can rewrite requests, personalize responses, handle authentication, or assemble content right where the user is. Running at the edge cuts latency and reduces load on the origin.
Why it matters
Edge functions let you add dynamic logic without giving up the speed of a nearby cache. They move work that once required an origin round trip to the closest point in the network.
Related guides
What Is a CDN Edge?A CDN edge is a geographically distributed cache server that serves content from close to the user, cutting l…
What Is an Origin Server?An origin server is the authoritative source of content that a CDN pulls from and caches, handling requests t…
What Are Server-Sent Events?Server-sent events let a server push a one-way stream of updates to a browser over a single long-lived HTTP c…