The new version of Edge Runtime is on average more performant and more cost-effective than Serverless Functions. Edge Functions are deployed globally across our Edge Network and can be automatically executed in the region closest to the user who triggers them. They also have no cold start, which means they don’t need extra startup time before executing your code.
How Edge features work
Using the V8 engines allows Edge Functions to run in isolated runtime environments that don’t require a container or virtual machine. This limits the Edge Runtime in many ways, but also keeps it lightweight. Running an Edge Function process requires fewer resources than a Serverless Function, effectively eliminating cold boot time.
Delivering dynamic content with low latency is possible because all Edge Functions are duplicated and deployed across a global network of data centers in Vercel’s Edge Network. They can be triggered in whichever data center is closest to the user, or in a region near your databases. You can also deliver custom content to them based on their region at high speed.
Finally, Edge Functions are billed in units of 50 ms of CPU time per invocation, called performance units. Developers interested in trying Edge Function can have 500,000 units per month through the hobby plan. In comparison, professional and enterprise teams have 1 million monthly Edge Function runtime units included for free and can add additional usage.
Pingback: Функциите на Vercel Edge Вече са в Публична Бета Версия – DevStyleR