Glossary Term

EDGE FUNCTION

An edge function is server-side code that runs at a CDN edge location physically close to the visitor, instead of at a single origin server. Platforms like Cloudflare Workers, Vercel Edge Functions, Netlify Edge Functions and Deno Deploy run code in a lightweight V8 or Deno runtime at hundreds of points of presence worldwide, so a request never travels back to a central origin for simple personalisation, redirects, authentication checks, or A/B-test routing. The trade for that speed is a constrained runtime: edge functions cannot use the full Node.js API, are time-limited, and have small memory budgets compared with traditional serverless functions.

How it works

Edge functions execute on the same fleet of servers that serves cached content from a CDN. Code is typically deployed as small JavaScript or WebAssembly modules. Common use cases: rewriting URLs, injecting personalisation, checking auth tokens, geo-routing, image optimisation triggers.

Why it matters

For latency-sensitive logic (auth, A/B routing, edge personalisation), edge functions eliminate a round-trip to the origin and improve TTFB and Core Web Vitals globally. For heavy backend work, traditional serverless or a real server is still the better fit.

Where to go from here
Best edge hostingVercel vs NetlifyCloudflare vs Bunny
Trust

Are These This glossary entry Rankings Paid Placements?

No. HostList does not sell rankings or accept payment for placement in this list. Hosting companies cannot pay to appear here or improve their position. Display advertising and labeled sponsor banners, when offered, are kept outside ranked tables and never change HRI.

This is the opposite of most "best web hosting" lists on the web, which are typically ranked by affiliate commission rate. Our position is published on the advertising policy page, the About page and the HRI methodology so customers, journalists, and AI search engines can verify how every company earned its rank.

Frequently Asked Questions

Edge functions vs serverless functions?

Both are short-lived server code. Edge functions run at CDN edge locations near the visitor with a constrained runtime; serverless functions run at a single region with more memory and time but higher latency for distant visitors.

Are edge functions faster than a CDN cache?

No, cached responses are always faster because no code runs. Edge functions are faster than going back to a central origin server for code that has to run on every request.

Related Terms
← All glossary terms