Edge functions VS Serverless functions
Vložit
- čas přidán 7. 07. 2024
- What are edge functions? What are serverless functions? In this video you will learn what they are and what is the difference between edge functions and serverless functions. If you are using Next.js and Nextjs API routes, it is important to understand the difference with edge and serverless so you can efficiently decide if you want to use Next.js API routes or Next.js Middleware.
⚡️DatoCMS: www.datocms.com/
Next.js + DatoCMS: • Learn to build Next.js...
Learn Programming (Skillshare FREE trial): skl.sh/3cYxUP5
My courses:
React basics: skl.sh/2XAKn7u
HTML & CSS for beginners: skl.sh/34wvGUH
Draft.js basics: skl.sh/3cJ5Hw4
Connect with me:
Website: tuomokankaanpaa.com
My newsletter: tuomokankaanpaa.com/newsletter
Twitter: / tumee
Skillshare: www.skillshare.com/r/user/tume
Timestamps
00:00 What this video is about
00:20 What are Serverless functions?
01:47 Serverless function advantages
02:16 Disadvantages of serverless functions
03:55 What are Edge functions?
06:00 Headless CMS on the EDGE
07:02 Should you use Edge functions?
#edgefunctions #serverlessfunctions #nextjs - Věda a technologie
Edge functions - serverless functions on CDN
This is what I needed to hear, thank you!
This explanation was perfect and exactly what I needed. Thank you! :)
Great to hear, thanks!
Wow that was concise. You deserve way more traffic.
Thanks!
I understand now. Great explanation!
Cheers!
Thanks for the explanation
Cheers!
Very very very good video.
Thank you!
Thank you.
Cheers!
my nextjs serverless execution is through the roof.
How can I make sure that it's cached properly? Serverless is looking like a scam right now, everytime someone access my api, the GB-Hrs go above the limit for no reason. can you please help me?
Here is more info on vercel's edge caching vercel.com/docs/concepts/functions/serverless-functions/edge-caching hope this helps!
Thank you
Cheers!
Hey! Nice video! What about database access? If functions live on the edge, but you need SQL?
@@user-hh8fn5uo1u Do you then locate your Redis swarm on the edge as well, to make it sit close to your Edge functions?
@@anton-shubin-live yeah that intuitively makes sense to me. Related structure you can also use a CDN for similar purpose altho I think that's more for static assets
Now i finally understand.
That’s great!
thank you
You're welcome!
Thank you for a simple and comprehensive explanation 🫡