Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Edge Hosting Platforms Compared: 9 Places to Run Code

Edge hosting runs your code in data centres near each visitor instead of in one far-off region, and the right platform depends on how much code you need to run there. Short request handlers such as redirects, auth checks and personalisation suit edge functions on a CDN; a full app or API with a database usually suits app hosting with a few well-chosen regions.

A request from Sydney to a server in Virginia crosses the planet and back before your page can even start to load. Edge platforms cut that trip by running code on a network of locations close to the visitor. For some jobs that's a clear speed gain. For others it moves the slow part somewhere you can't see it.

How I put this list together: I read the vendor pages for each platform, product, docs and pricing, in November 2026, and noted limits next to features. I haven't deployed to these platforms for this guide, so treat each entry as what the company states and run the latency check further down before you commit. Where a page didn't give a free allowance or a billing unit, the entry says so.

Where edge setups go sideways

Start here, because the same few problems turn a promising edge project into a slower site.

The database is still in one place. If your function runs in Singapore but every request reads from a database in Frankfurt, you've added a long hop rather than removed one. Edge code shines when it can answer from cache, from the request itself, or from data stored near it. If every request needs fresh rows from a central database, regional hosting next to that database is often faster. Read our guide to Postgres hosting before you split code and data across the world.

The runtime is narrower than you assumed. Edge runtimes are built for small, fast pieces of code, and they differ on languages, memory, execution time and which libraries will run. A package that works on your laptop can fail at the edge because it expects a full server environment. Check the runtime docs for your language before you write anything.

"Global" means different things. Some platforms deploy every change to every location at once and say you needn't manage regions at all. Others run in one region unless you ask, and say so in the docs rather than on the homepage; one frontend platform here runs Node.js functions in a single US region by default. Neither is wrong, but you need to know which you've got.

Debugging gets harder. A bug that shows up in one city and not another is a new kind of headache. Make sure logs from every location land in one place before you go live.

Three forks that narrow the field

Edge functions or full app hosting. Edge functions are short-lived handlers that run on a CDN's network: rewriting a request, checking a token, picking a language, serving a cached page with a personalised header. App hosting runs a whole service, often in containers or virtual machines, in a handful of regions. If your app needs long-running processes, background jobs or a full framework, a container host in a few regions may beat the edge.

CDN first or app platform first. CDN companies added compute to a network built for caching, so they're strong on reach and raw request handling. Frontend and app platforms added edge features to a deployment workflow, so they're strong on Git-based deploys and previews. Ask yourself whether your team thinks in terms of traffic rules or in terms of pushing code.

Big cloud or specialist. The big clouds fit neatly if the rest of your stack already lives with them, with one bill and one set of permissions. Specialists focus on one job, which can make them simpler to start with.

Edge functions and CDN compute

Cloudflare Workers

Workers run across 335+ cities, per Cloudflare's site, in JavaScript, TypeScript, Python or Rust, and billing counts CPU time rather than time waiting on I/O. It starts free as of November 2026. Skip it if your team writes only Go or Java.

Fastly Compute

Fastly Compute runs your code as WebAssembly on Wasmtime, isolated per request, in JavaScript, Rust, Go or C++, and each deploy goes to every Fastly POP at once. Skip it if you want one service hosting your app, database and front end together.

Bunny Edge Scripting

Bunny's edge scripting runs on Deno, so TypeScript deploys natively, across 119 regions. Billing is per request and per millisecond of CPU time, with a monthly minimum. Skip it if quiet months must cost nothing.

Gcore FastEdge

Gcore FastEdge runs JavaScript or Rust as sandboxed WebAssembly apps for request-time logic such as routing and access checks. As of November 2026 it starts with a free edge app. Skip it if you want to host a full application.

Azion

Azion bundles edge functions, CDN and security, giving each workload its own environment, with WAF and rate limits on by default. The Hobby plan is free as of November 2026. Skip it if you need Enterprise without a sales call.

Amazon CloudFront

CloudFront's flat-rate plans bundle it with WAF, Route 53 and S3 with no overage charges, and blocked DDoS traffic doesn't count. There's a Free plan as of November 2026. Skip it if you want edge compute too.

App hosting with edge reach

Vercel

Vercel bills functions on active CPU, provisioned memory and invocations on top of a plan, and a spend limit can stop usage at budget. Its docs say Node.js functions run in Washington, D.C. by default. Skip it if you expect multi-region by default.

Koyeb

Koyeb hosts containers and AI models rather than edge functions, scaling to zero across 50+ locations. Processing is billed per second on top of a plan fee, after a monthly free credit. Skip it if you want light edge functions.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Netlify Edge

Netlify Edge Functions in TypeScript or JavaScript modify requests near users, with geolocation for localising or A/B tests, and rules live in a version-controlled netlify.toml file. As of November 2026 the Free plan is free forever. Skip it if every request needs heavy compute.

The nine compared

Languages, reach and billing units as each vendor states them on its own product, docs and pricing pages, read in November 2026.

PlatformKindLanguages namedWhere code runsBilled onFree start, November 2026
Cloudflare WorkersEdge functions on a CDNJavaScript, TypeScript, Python, Rust335+ cities, or near your data with Smart PlacementCPU time, not I/O waitFree, no card
Fastly ComputeEdge logic as WebAssemblyJavaScript, Rust, Go, C++Every Fastly POPRuns only, units not namedFree start
Bunny Edge ScriptingEdge scripting on DenoTypeScript, WebAssembly119 regionsRequests and CPU milliseconds, monthly minimum14-day trial, no card
Gcore FastEdgeEdge logic as WebAssemblyJavaScript, RustGcore edge networkCompute and edge data usedFree edge app
AzionEdge functions, CDN and securityNot named on the pages readAzion edge networkConsumption, with spending limitsFree Hobby plan
Amazon CloudFrontCDNNot applicable (delivery pricing read)Nearest edge locationFlat-rate bundle or tiered per GBFree plan
VercelFrontend cloudNode.js, Python, Go and othersOne region by default, more configurableActive CPU, memory, invocations plus planHobby plan listed
KoyebContainer and GPU hostingCode and containers50+ locationsPer second plus plan feeMonthly free credit
Netlify EdgeFrontend platform with edge functionsTypeScript, JavaScriptNear usersPlans with top-up creditsFree plan

This year's shake-up

Edge hosting is younger than it looks, and products and pricing models change often. I've only listed platforms whose own pages I could read for this guide, so a few well-known names are absent. The lesson for buyers is simple: keep edge code portable, stick to web-standard APIs where you can, and avoid features that tie every handler to one vendor.

Do you make edge hosting or edge compute platforms? Tool makers can ask to be considered for a featured place on this list.

Run this latency check in an hour

Pick one real endpoint, ideally one that does a little work, such as reading a cookie and returning a personalised response. Deploy it to two or three shortlisted platforms using each one's starter template. Then call it from several locations; a free uptime checker or a couple of cloud shells in different continents will do. Record the time to first byte from each place, twice: once cold, after the function has been idle for a while, and once warm.

Now add the dependency your real code needs, such as a database read or a call to your API, and run it again. This is where edge platforms separate. If the numbers only look good without the dependency, your app is a better fit for regional hosting near its data. Last, break the code on purpose and time how long it takes to find the error in the logs. That's the number you'll live with at two in the morning.

Read the runtime docs for these six things

The product pages sell reach. The docs tell you whether your code will run. Before the latency check, find these in each shortlisted platform's documentation:

  • Languages, and what compiles. Edge runtimes name a short list. WebAssembly widens it, but only for code that compiles cleanly to it.
  • Request and body size limits. One demo here accepts POST or PUT bodies up to 2 MB. File uploads or model inference with large inputs can hit limits like that on day one.
  • A local runtime you can test on. An open-source runtime that matches production lets you catch failures on your laptop instead of in a far-off city.
  • Placement controls. Some platforms can run code near your data instead of near the visitor. That one switch can fix the central-database problem described above.
  • Config as code. Redirects, headers and rules kept in a version-controlled file get reviewed like any other change, which beats clicking through a dashboard.
  • Where heavy work goes. Several vendors point heavy compute to a separate tier or product. If your handler does real work on every request, price that tier, not the light one.

What you pay for

Expect an edge bill built from requests, compute time, data transferred or some mix of the three, and check each pricing page for extras such as storage. The units differ more than the marketing suggests. CDN compute is often billed on CPU time, and the better meters don't count the time your code spends waiting on I/O; one adds a monthly minimum on top. Frontend platforms count active CPU, provisioned memory and invocations on top of a plan fee, and container hosts bill per second on top of theirs. The big-cloud CDN here offers flat-rate bundles with no overage, or tiered pay-as-you-go per GB. Several platforms let you set a spending limit that stops usage before the bill runs away. The practical result is that a quiet site costs very little and a busy one can grow its bill in ways a flat hosting plan never would. Before you commit, take a week of your real traffic, multiply it out on each pricing page, and include bandwidth: for media-heavy sites that line often outweighs the compute.

If your workload is steady and heavy, a fixed-price server can work out cheaper and more predictable. Our VPS hosting guide is the comparison to run alongside this one.

Which type to pick

If you're adding logic in front of an existing site, such as redirects, A/B tests, auth checks or geo rules, pick edge functions on a CDN network you trust. If you're shipping a frontend framework from Git and want previews for every branch, a frontend platform with edge functions saves you building the pipeline yourself. If you're running an API or AI inference that needs a full runtime, choose app hosting with a few regions near your users and your data. And if you're already deep in one big cloud, start with its own edge option before adding another bill.

Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.

Frequently asked questions

Is edge hosting the same as a CDN?

No. A CDN stores copies of files near visitors. Edge hosting runs your own code at those locations, so the response can change per request rather than being a stored copy.

Can I run a full website at the edge?

Static sites and light server-rendered pages can. Sites with heavy server-side work, long-running jobs or a single central database usually do better with most of the work in one or two regions and only the light logic at the edge.

Will edge hosting help my SEO?

Faster responses help page experience, but only if the edge version is faster for real visitors. Measure time to first byte before and after, from the countries your traffic comes from, rather than assuming.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.