
Rendering at the Edge, and When Not To
Infrastructure
Moving rendering closer to the visitor removes a whole class of latency. It also removes assumptions your code may quietly depend on.
What actually gets faster
The win is the round trip, not the render. If a visitor in Amman hits a server in Amman instead of Virginia, you save the physics, roughly 150ms that no amount of optimisation elsewhere will recover.
What breaks
Edge runtimes are not Node. No filesystem, no long-lived connections, a smaller standard library, and strict CPU budgets. Anything that assumed a warm server with local state has to be rethought, not ported.
Cache is the real feature
Most pages are the same for everyone most of the time. Rendering at the edge and caching the result is what turns a fast origin into an instant page. Decide what varies per visitor before you decide where to run.
When to stay central
Long jobs, heavy dependencies, anything that talks to a database in one region: keep it central and cache in front. The edge is a delivery strategy, not a replacement for a backend.
Join Our Newsletter
