VOOZH about

URL: https://thenewstack.io/vercel-brings-serverless-functions-to-the-edge/

⇱ Vercel Brings Serverless Functions to the Edge - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-12-28 03:00:53
Vercel Brings Serverless Functions to the Edge
sponsor-couchbase,sponsored-topic,
Software Development

Vercel Brings Serverless Functions to the Edge

Front end development tool provider Vercel has released a middleware library, called new Edge Functions, that provides automatic global deployment of functions on Amazon Web Services.
Dec 28th, 2022 3:00am by Jessica Wachtel
👁 Featued image for: Vercel Brings Serverless Functions to the Edge

Frontend development tool provider Vercel has released a middleware library, called new Edge Functions, that provides automatic global deployment of functions on Amazon Web Services.

Edge Functions are serverless instances of functions written in JavaScript, TypeScript, or WebAssembly (which allows you to bring in functions from other languages). With Edge Functions, deployment on the global edge network is the default. Cold starts happen faster, and there’s still virtual machine isolation, but the new architecture leads to lower latency.

Vercel’s Edge Network saw over 30 billion Edge Function invocations since the beta launch earlier this year. In one test, involving image generation, the edge APIs return results in almost 40% faster than a hot Serverless Function at a fraction of the cost.

Vercel’s Chief Technology Officer, Malte Ubl, sat down with The New Stack to discuss Edge Functions.

Couchbase delivers Capella, the cloud database platform for modern applications. Capella enables developers and architects to quickly build the apps of the future and deliver always-on experiences to customers, on a mission to simplify how businesses develop, deploy and consume modern applications.
Learn More
The latest from Couchbase

What Are Edge Functions?

Edge Functions are middleware functions supported by Next.js, Nuxt, Astro, and SvelteKit as well as created as a standalone function in Vercel CLI.

The default setting for Edge Functions is to run in the region closest to the request, with the goal of lower latency. They run after the cache and can both cache and return responses making them available solutions for fetching data or rewrites.

👁 Image

The pricing model is billed in 50ms of CPU time per invocation. This means billing is reflexively based on time spent performing compute operations not time spent waiting for data fetches.

Deploying Globally

One thing about the global deployment of serverless functions is that “It’s very expensive,” said Ubl. If that’s a priority, it’s one of the tradeoffs when considering choosing a serverless option. He continued, “typically you will only deploy in a single data center worldwide. You can [deploy] in multiple [data centers] but that’s like very uncommonly done.”

But cost alone isn’t the only barrier to entering edge networking. Understanding the complexities of building and maintaining a global edge network is usually more complicated than adding middleware. Edge Functions aims to bridge the gap for its customers.

AWS’s sole role with Edge Functions is as the network infrastructure provider, as Ubl confirmed Vercel is “terminating the traffic ourselves within AWS’ network.” But Vercel doesn’t use every data center available inside AWS’s infrastructure as Ubl explains there’s a data center “sweet spot” of about 12-20 data centers globally that, when utilized, will offer roughly 10 milliseconds latency for all users while maintaining network safely.

Not every data center is created equal, of this Ubl explains, “it might be fine to like run a cache in, you know, in a [untrusted] location, but you don’t necessarily want your compute there.” To keep it simple, Vercel offers about 15 locations for Edge Functions which can be found here

Default deployment is in the region closest to the application user making the request. Closer data center, shorter latency. This usually tracks unless the application requires the use of a database. For these cases, Regional Deployment, a new feature announced with GA allows developers to bind the function to a specific region (ie the region where the database is performing compute operations).

The Cold Start Problem Solved

One incredible feature is the ability to scale down to zero instances, though it may not feel like it for the user who has to start the function back up the next time it’s invoked. Vercel put a lot of engineering muscle into its architecture to minimize its cold start times. Ubl defined faster cold start as “We’re talking dozens of milliseconds of cold start time on Edge Functions [vs] serverless we’re talking hundreds of milliseconds of cold start time.”

Even better yet is no cold start. Between the beta and GA, Vercel, “substantially improved the performance of the health of the product offering,” Ubl said when explaining the reduction in cold start instances. “We’re now much better at routing the incoming traffic that we get  so we decrease the amount of time where we when we hit a call function that hasn’t been warmed up.”

The Architecture

In a more traditional serverless infrastructure such as AWS Lambda, each function gets a microVM that has a start-up node inside of it. The isolate layer — the layer handling the requests — is then located inside of the start-up node. Each function is comprised of three layers of isolation, all needing RAM and all having costs associated with them.

Edge Functions’ infrastructure still includes the isolation layers needed to protect customers from potential harm but it just includes the innermost part of the instance, the VM isolate. This helps greatly with the cold start because only one isolation layer needs to be spun up. The infrastructure design is the source of both the efficiency and cost wins because less work is required when a request arrives.

The Roadmap Ahead

There is still work ahead. Increased Node.js compatibility is one of the main areas of investment. Observability and error reporting are also currently being expanded upon. No release date for any new versions has been made public yet.

Couchbase delivers Capella, the cloud database platform for modern applications. Capella enables developers and architects to quickly build the apps of the future and deliver always-on experiences to customers, on a mission to simplify how businesses develop, deploy and consume modern applications.
Learn More
The latest from Couchbase
TRENDING STORIES
Jessica Wachtel is a developer marketing writer at InfluxData where she creates content that helps make the world of time series data more understandable and accessible. Jessica has a background in software development and technical journalism.
Read more from Jessica Wachtel
SHARE THIS STORY
TRENDING STORIES
Amazon Web Services is a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Pragma.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.