Edge functions VS Serverless functions

Sdílet
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

Komentáře • 26

  • @KevinMpofu
    @KevinMpofu Před rokem +33

    Edge functions - serverless functions on CDN

  • @MarisaRichmond
    @MarisaRichmond Před rokem +6

    This explanation was perfect and exactly what I needed. Thank you! :)

  • @gedalyahreback2133
    @gedalyahreback2133 Před 2 lety +5

    Wow that was concise. You deserve way more traffic.

  • @elvistejeda8661
    @elvistejeda8661 Před 2 lety +1

    I understand now. Great explanation!

  • @sithumdasantha3147
    @sithumdasantha3147 Před rokem

    Thanks for the explanation

  • @-seoulair
    @-seoulair Před 8 měsíci

    Very very very good video.

  • @yigitruzgaruzun7289
    @yigitruzgaruzun7289 Před 2 lety +1

    Thank you.

  • @yoman9446
    @yoman9446 Před 2 lety +1

    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?

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Před 2 lety +1

      Here is more info on vercel's edge caching vercel.com/docs/concepts/functions/serverless-functions/edge-caching hope this helps!

  • @iilhamriz
    @iilhamriz Před rokem

    Thank you

  • @anton-shubin-live
    @anton-shubin-live Před rokem

    Hey! Nice video! What about database access? If functions live on the edge, but you need SQL?

    • @anton-shubin-live
      @anton-shubin-live Před rokem

      @@user-hh8fn5uo1u Do you then locate your Redis swarm on the edge as well, to make it sit close to your Edge functions?

    • @Scorpio7500
      @Scorpio7500 Před rokem

      @@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

  • @-seoulair
    @-seoulair Před 8 měsíci

    Now i finally understand.

  • @27sosite73
    @27sosite73 Před 7 měsíci

    thank you

  • @mr_devboy
    @mr_devboy Před 2 měsíci

    Thank you for a simple and comprehensive explanation 🫡