Design

Edge function

An edge function executes at the CDN's edge locations close to the user, typically with sub-millisecond cold starts (V8 isolates) and ~10-50ms latency advantage vs origin-region functions. Examples: Cloudflare Workers, Vercel Edge Functions, AWS Lambda@Edge, Netlify Edge Functions. Best for request modification, A/B routing, auth gating, and lightweight personalization.

Updated

Edge functions trade compute power and runtime API surface for proximity and start-up speed. Most edge runtimes run V8 isolates with Web APIs (fetch, Request, Response, Headers, crypto) and exclude Node.js APIs that depend on the filesystem or large native bindings. The strongest fit is request-path work that needs to be fast and lightweight: cookie inspection, geo-based routing, auth token validation, edge-cached personalization. The wrong fit: heavy CPU work (image transforms, ML inference) where the runtime limits bite. Vercel and Cloudflare have pushed the runtime envelope significantly, but the basic trade-off, speed and ubiquity vs runtime depth, still holds.

See the term at work

Stride keeps issues, architecture decisions, tests and delivery data in one workspace, where the terms in this glossary are things you can open.