Skip to content
Latchkey

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

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →