on this page

GlossaryWhat is an edge function?

What is an edge function?

An edge function is a serverless function that runs on servers spread across several locations, so a request is handled at a location near the person who sent it rather than in one central region. "The edge" means the outer layer of a network, the servers closest to users.


How it works

The platform puts the same code on every edge location. DNS or network routing then sends each visitor to a nearby one: the hostname resolves to different addresses depending on where the question comes from, or many locations announce the same address. Shorter distance means less round-trip time, which matters most for small, fast responses such as redirects, API calls, authentication checks and personalised pages.

Code at the edge is only as quick as the data it needs. A function near the user that has to fetch every row from a database on another continent gains little. Edge platforms tend to answer that with caches, read replicas, or by keeping data next to the function, and each choice changes how fresh the data is and where writes go. It's worth knowing which one your platform picks before you rely on it.


Edge functions on Tissue Cloud

Tissue Cloud runs Cells on more than one serving edge. A Cell's tissue.dev hostname answers with the address of the Tissue edge nearest whoever asked, so dig run from two places can return two different addresses for the same Cell, and both are right. You deploy once, and each edge picks up the new version on its next request for that Cell. A Cell's bindings to c3, g7 and the vault work from any edge, and an access policy set with Gate is checked at the edge before the Cell runs.

Custom domains explains how edge routing applies when you put a Cell on your own domain.