Edge Computing (Edge Functions)

Edge computing moves computing logic from central servers to geographically distributed nodes close to the users. Edge functions are small, serverless units of code executed at those nodes – through Cloudflare Workers, Vercel Edge Functions or AWS Lambda@Edge, for example – which noticeably reduces the network latency between request and response.

In practice

In practice edge functions suit tasks that have to happen close to the user and fast: A/B testing, personalisation, authentication, redirects, or serving dynamically generated but cacheable content. Because edge nodes are spread across many locations worldwide instead of sitting in a single data centre, the time to first server response tends to fall, which has a positive effect on TTFB and therefore often on LCP as well. For compute-intensive tasks or database access with many write operations, classic server or cloud hosting usually remains the better fit, since edge environments are deliberately lightweight and have restricted run times.

Matching service

Sources

← Back to the glossary