CDN Caching, Static Site Generation, and Server Side Rendering

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 52

  • @AnthonyCandaele
    @AnthonyCandaele 3 года назад +54

    This must be the best explanation of SSG and SSR I have ever heard.

  • @simonswiss
    @simonswiss 2 года назад +25

    This was a fantastic explanation! My understanding of how this works was very "vague", and I now have a solid understanding, thank you!

  • @SachinBhatt-hw9vc
    @SachinBhatt-hw9vc Год назад +2

    Unbelievably insightful! I cannot imagine how dumb I could be for many years working on Web and did not take a moment to fully understand the nuts and bolts of how things work in it! I am really glad that I watched this video the 2nd time now after nearly 4 months when I first watched it and missed to pay attention to the caching stuff. Thanks So So Much brother @RyanFlorence for this wonderful in-depth session.

  • @BolatbekYeraliyev
    @BolatbekYeraliyev 3 месяца назад

    no single comment about texture of his shirt and video compression?))) thank you Ryan for recording this video. amazin presentation and lots of stuff to learn about

  • @helmisatria
    @helmisatria Год назад +2

    OMG this is the best explanation about Caching, SSG and SSR, thank you!

  • @user-wb2nn4fy4q
    @user-wb2nn4fy4q 8 месяцев назад +1

    Wow, best presentation I've seen on any topic in a minute. Great job Ryan

  • @gonzaloespeche1499
    @gonzaloespeche1499 3 года назад +17

    I finally understood SSG and SSR in depth, thanks! And btw, I enjoyed watching the whole video. Concepts are explained in a fresh and friendly way. Cheers!

  • @oncelearner
    @oncelearner 3 года назад +7

    Nice One ! I REALLY LOVED THE WAY YOU USED EMOJIS TO EXPLAIN THINGS

  • @zyishai
    @zyishai Год назад

    This is the most clear explanation I've ever heard for this topic! Thank you so much, I finally understand what all these terms mean!

  • @floroz87
    @floroz87 3 года назад +4

    Amazing job Ryan, well explained.

  • @naruto5437
    @naruto5437 3 года назад +2

    one of best video on internet for web dev

  • @AnthonyInSanDiego
    @AnthonyInSanDiego 3 года назад +2

    gosh you're a such an expert! I really appreciate this presentation

  • @ortatherox
    @ortatherox 3 года назад +2

    This is a video does a great job explaining a tough concept - good job

  • @shauryavardhan33
    @shauryavardhan33 3 года назад +5

    Amazing content, cleared all my doubts regarding cache. Looking forward to more videos.

  • @MaxiZipitria
    @MaxiZipitria 2 года назад +1

    This video is pure gold

  • @amadeomoranguerrero5031
    @amadeomoranguerrero5031 Год назад

    Awesome men! All your videos has an extraordinary cleaver and simple way to explain things!! Fantastic!! 🙂, Cheers!

  • @kieranosgood3297
    @kieranosgood3297 3 года назад +2

    This stuff, is dayymn cool. Excited!

  • @woodbrettm
    @woodbrettm 3 года назад +1

    You should post more vids like this! Was super helpful.

  • @Peter-sz8gx
    @Peter-sz8gx Год назад

    This is a very interesting approach. I like it!

  • @Alcani3ca
    @Alcani3ca Год назад

    Man, this is awesome content right there

  • @ginger-viking
    @ginger-viking Год назад

    Thanks for a great video

  • @ameerkabir
    @ameerkabir Год назад

    Great video, love it

  • @saurabh75prakash
    @saurabh75prakash 2 года назад

    Awesome tutorial and introduction 🙏

  • @tomino133
    @tomino133 2 года назад

    Great explanation Ryan. Thank you.

  • @immer5680
    @immer5680 2 года назад

    You have a talent for teaching

  • @lorieldesamito3998
    @lorieldesamito3998 Год назад

    Great Explanatiiiiiiiiiiioooonnnnnn!!!!!!!!

  • @GiovanniAntonaccio
    @GiovanniAntonaccio 2 года назад

    What an amazing explanation!

  • @ponssuarez
    @ponssuarez Год назад

    When Ryan said "I'm not good ay Math" hahaha. "Same same"

  • @danielkelly2585
    @danielkelly2585 3 года назад +1

    This is excellent!

  • @joshdeltener2012
    @joshdeltener2012 3 года назад +7

    This also assumes CDNs will keep assets in their CDN for a year.. They won't :). Many (if not all) CDNs only serve the most used assets so they can keep their storage costs down.

  • @scaz182
    @scaz182 2 года назад +1

    This was a really good comparison, thanks. Would love to see a video talking about how to handle personalisation / authenticated states and caching in Remix as I've always found it unrealistic to cache entire HTML pages as they almost always have a significant portion of bespoke content for a single user (product recommendations, feed, logged in states etc.). Years ago, I remember MVC frameworks allowing you to cache specific components (partials?), I wonder if Remix has support for this? I even recall CDNs supporting partial stitching but don't know much about it / how it'd work with React.

    • @JoepKockelkorn
      @JoepKockelkorn 2 года назад +1

      You can always cache at a lower level, like use Redis and cache a user's or shared content. I think the more dynamic a page is, the more complex caching becomes.

    • @scaz182
      @scaz182 Год назад

      @@JoepKockelkorn yeah, I've come around to thinking you will just have to take the hit on rendering (both in Remix and Next), but you can cache expensive API / DB calls in redis as you suggest. Cloudflare Workers has a really powerful caches API to cache data near the user.

  • @timonweb_com
    @timonweb_com 3 года назад +3

    Hey, thanks a lot for this video. I have a question, why there's no comma between s-maxage and stale-while-revalidate? You have: "s-maxage=604800 stale-while-revalidate=3154000000". Is it a trick to make "stale-while-revalidate" a CDN only and force browser to ignore it, or is just a typo?

  • @ytadi9229
    @ytadi9229 3 года назад +1

    I did had this idea of uploading SSR generated code to CDN but backed down when I thought about cache bust not possible with HTML files. Atleast the main one index.html.

  • @theghostyced
    @theghostyced Год назад

    This explaination was amazing. I tried implementing the ISR with next but got some errors while deploying with AWS as ISR isnt supported yet, this would be a nice backup instead.

  • @youknowwho4994
    @youknowwho4994 Год назад

    Remix is fantastic. End of the story

  • @paulbennetjoshua
    @paulbennetjoshua 3 года назад +4

    I think we can request Chrome Dev tools people to render the cache header values more readable

  • @xDavidhjx
    @xDavidhjx Год назад

    Major CDNs (akamai is my experience) normally charge money for purging caches, so if you are a startup tight on money or have a hobby project it might not be ideal for you to automate it if your pages are dynamic.

  • @christophercampos2284
    @christophercampos2284 Год назад

    Great Explanation!!
    One Question…, how we can make on demand revalidation like NextJS, for example if I have a CMS and u want make a request to remix app for revalidare the post in demand. How u Can doing this?

  • @luischodiman7189
    @luischodiman7189 2 года назад +1

    Hi, do you have the example project showed at the end on a repo? I'd love to have a look at the source code

  • @wolverineks
    @wolverineks 3 года назад +1

    can the browser get the stale version from the cdn and request a fresh copy at the same time? then replace the stale version once it arrives? the cdn could check with origin to see if the copy it already has is still fresh?

  • @danwilloughby2088
    @danwilloughby2088 3 года назад +2

    But the donuts are half-off at the end of the day :) 27:24

  • @cassiano378
    @cassiano378 Год назад

    Is this still valid for latest versions of Remix? I ask because by looking at the folders structure and file names, a lot changed, right?

  • @tech3425
    @tech3425 9 месяцев назад

    "Dora the explorer for web developers" xDDD

  • @musaddikrayat
    @musaddikrayat 2 года назад

    86400 is a day :3

  • @ThuanNguyen-kd1yh
    @ThuanNguyen-kd1yh 3 года назад +1

    Hello, thanks for a great video, I have a question
    In part 1 - ruclips.net/video/3XkU_DXcgl0/видео.html, when set the header for the "cache-control" in the code, will it work for all CDN? For example, using CloudFront or CloudFlare CDN. I mean, the "cache-control" set from the code will be received by the CDN and delivered to the browser with the same "cache-control".
    Looking forward to receiving support. Thanks!

  • @joshdeltener2012
    @joshdeltener2012 3 года назад +1

    SSR .. "kinda slow".. I don't think 162-250ms is kinda slow for Nuxt :)

  • @tech3425
    @tech3425 9 месяцев назад

    You could have made it a shorter video

  • @diucho2118
    @diucho2118 3 года назад

    Yang sayang aku like yang cinta allah coment.