WTF Do These Even Mean

Sdílet
Vložit
  • čas přidán 10. 06. 2024
  • React Simplified Course: reactsimplified.com/?...
    There are so many acronyms when dealing with rendering and they all sound so similar. It is tough to know what each acronym means and which is the best option for you. That is why in this video I will be breaking down exactly what each acronym is, the pros/cons of each, and what applications they are best used for.
    📚 Materials/References:
    React Simplified Course: reactsimplified.com/?...
    React Job Board (CSR Example): react-simplified-job-board.ne...
    My Blog (SSG Example): blog.webdevsimplified.com/
    🌎 Find Me Here:
    My Blog: blog.webdevsimplified.com
    My Courses: courses.webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    ⏱️ Timestamps:
    00:00 - Introduction
    00:33 - Definitions
    01:05 - How Websites Work
    03:45 - CSR
    05:17 - SSR
    06:42 - SSG
    09:05 - ISR
    12:04 - Comparison
    #CSRvsSSR #WDS #SSGvsISR

Komentáře • 111

  • @69k_gold
    @69k_gold Před 4 dny +1

    Most important things one needs to know are:
    Client is just the browser
    Server is a computer that serves HTML, CSS, and JS files to the browser(a server can do a lot more, but we are talking about web server)
    Browsers were designed to run HTML, CSS and JS code, which were intended as a way to beautify the website
    But people realised the power of JS in this, so now we got JS-based apps in CSR, where JS does everything you need in the application, and only requesting business data(basically the data they can't store in your PC because it's valuable and/or large data)
    But then, people realised that this doesn't benefit clients who have their PC cooking up the room with all the JS it's running, so they made it so that the entire logic is handled in the web server itself, and what we get in the end is just enough markup, styles and code to present the website, and everything else related to the application is done by the server
    And anything else is clever techniques in between these two

  • @JominJose
    @JominJose Před 6 měsíci +21

    One of the most overlooked topics in web dev. Thank you for making it so simple and clear!

    • @carlosmspk
      @carlosmspk Před 6 měsíci +1

      I would deeply disagree, most people in the industry begin by discussing this, and it's the first dev step of any new product
      Maybe you meant to say it's overlooked by people learning/teaching web dev?

    • @JominJose
      @JominJose Před 6 měsíci

      @@carlosmspkYes, that's what I meant

  • @nid30
    @nid30 Před 6 měsíci +6

    Much awaited topic covered from my favorite educator!! Penned down every single word that you explained... This really helps when referencing and revising the topics. And not to forget, Kyle you explained the concept of Hydration so beautifully and concisely, sharp on point. Heartfelt appreciation for your efforts...!!🙌🙌🙏🙏

  • @venkat.sairam
    @venkat.sairam Před 6 měsíci +47

    🎯 Key Takeaways for quick navigation:
    00:13 📚 *In this video, the presenter explains the meanings of acronyms like SSR, CSR, SSG, and ISR, as well as their differences and use cases in web development.*
    02:08 🖥️ *Server-Side Rendering (SSR) involves minimal build time, with most work happening on the server. It's suitable for traditional server-rendered applications.*
    04:02 💻 *Client-Side Rendering (CSR) sends HTML and JavaScript to the client, with all rendering happening on the client side. Common in React applications.*
    06:50 📦 *Static Site Generation (SSG) builds all HTML pages at build time, resulting in fast load times. Ideal for static content websites.*
    09:22 🔄 *Incremental Static Regeneration (ISR) combines benefits of SSG and SSR. It generates some pages at build time and others on-demand, useful for dynamic content with shorter build times.*
    11:54 🌐 *The choice between these approaches depends on where you want to allocate the most time and workload: client, server, or a balance between them, based on your project's needs.*
    Made with HARPA AI

  • @theisoj
    @theisoj Před 6 měsíci +6

    You explained this really well! Thanks Kyle as always! 👍👍

  • @youngcoding5055
    @youngcoding5055 Před 6 měsíci +1

    You make everything look easy! Thanks bro!

  • @pxkqd
    @pxkqd Před 6 měsíci +10

    Which one to use depends on the use case.
    SSR works for everything, but has the most downsides. SSG is good for docs and other non dynamic content that doesn't grow a lot. ISR is the best for websites.
    CSR is best for apps.

  • @MrHellmager
    @MrHellmager Před 6 měsíci

    This honestly been in the back of my mind for weeks. Thank you for addressing this topic.

  • @ff-mj2fv
    @ff-mj2fv Před 6 měsíci

    Please keep on posting top notch videos and i especially like your shorts 🔥

  • @systematicpsychologic7321
    @systematicpsychologic7321 Před 6 měsíci

    I just wanted to say I watch all your vids and you're great for all things web dev. Thanks a ton for the effort, I keep picking up new tricks for you.

  • @morraez4772
    @morraez4772 Před 6 měsíci

    This is a really goos explaination. would you consider doing a part 2 giving some code example for each type?

  • @ansh_mittal
    @ansh_mittal Před 6 měsíci +2

    One day I saw this channel and now I am very confident in web dev thanks dude ❤❤❤🎉

  • @atmanatos7165
    @atmanatos7165 Před 6 měsíci +3

    Hi Kyle. Been a while since your last comprehensive MySQL course. Please do a fully comprehensive one that touches the advanced levels.

  • @karimbouche3563
    @karimbouche3563 Před 6 měsíci

    Thank you kyle ,excellent video ,i like your content

  • @aqibmalik6313
    @aqibmalik6313 Před 6 měsíci

    by the way I love your work.
    I have great admiration for you.
    Keep up the good work. ❤❤❤

  • @nikhilsinha2191
    @nikhilsinha2191 Před 6 měsíci

    thanks for the info you really were helpfull I will go with ssr for my blogs as it will contain content of more than 1 user and needs seo as well
    which I will handle from my backend django admin server

  • @user-ug7qq8oi9u
    @user-ug7qq8oi9u Před 6 měsíci

    thank you! i love this contents

  • @yoavmelamed1522
    @yoavmelamed1522 Před 5 měsíci +1

    Thank you for the video! What would you use for building an admin dashboard app (for example: CRM app or something like that) CSR or SSR? why?

  • @ExtraTurtle
    @ExtraTurtle Před 3 měsíci +2

    You mentioned SSG can be complicated when you have a site like ecommerce, and it has tons of products.
    But usually, products are stored in the DB, and you only have one page that shows product details
    I assume SSG doesn't fetch all items from the DB and generate a static page for each product? or am I wrong?

  • @user-cq3wm2lu8u
    @user-cq3wm2lu8u Před 6 měsíci +2

    dude great video

  • @prographics2788
    @prographics2788 Před 6 měsíci +2

    hey kyle, when will your next.js course be released ?

  • @DamirSecki
    @DamirSecki Před 6 měsíci +5

    I think thios is very deceiving... all of the methods should be hybrid... I wish you would mention, the first load is SSR or CSR or SSG, etc... after it is streamed to the client... they can become (and more often than not) a normal SPA, where the bits are then hydrated asyncronously.... especially when you mentioned CSR... and that the server is not doing almost any work... that is obviously very false... or deceiving... the server does not do anyt work to serve initial html and js... but does plenty of work to fetch the data via API (or other protocols)... also for SSG this is the case... ASTRO pages are not just static pages and can be hybrid - the beauty is the super fast FIRST load... but then if you want your page to be interractive and get fresh data asybc load, it can be done... hence the island architecture...

  • @incarnateTheGreat
    @incarnateTheGreat Před 6 měsíci +1

    Good points all around.
    I generally stick with SSR, which is what Next.js has out of the box. That said, with React Server Components now available, we can go about dynamic data calls that can be made safely via the server.
    The only issue is, re-hydrating takes a bit of wizardry. Once that is sorted, I feel like I would stick with that approach: let the server do the heavy-lifting.

    • @AkashhGuptaa
      @AkashhGuptaa Před 6 měsíci

      What's the issue with re hydration explain a bit more brother

  • @akshaygadekar3089
    @akshaygadekar3089 Před 6 měsíci

    There is also 'on-demand static regeneration'

  • @mme725
    @mme725 Před 6 měsíci

    You know, I knew this should have been javascript related. However I still for some reason couldn't get what CSR was outside of that thing I used to generate to get an SSL certs for clients.

  • @avertry9529
    @avertry9529 Před 6 měsíci

    Thanks, please do SolidJS tutorial

  • @shgysk8zer0
    @shgysk8zer0 Před 5 měsíci

    I mostly do some combination of SSG with selectively CSRed components. I think web components/custom elements are pretty awesome there since they don't rely on some JS framework or routing or state or anything, so it's less expensive to mix the two strategies (had I built them with React, well... if I'm loading the whole framework, why not just build a React site?)

  • @robinparadise
    @robinparadise Před 6 měsíci +2

    Actually you can reduce the build time of SSG a lot not using a lot of dependencies on Astro or Hugo... There are a lot of SSGs that can build thousands of pages in less that a second (Hugo specially do that 💀)

  • @ahmedahmedx9600
    @ahmedahmedx9600 Před 6 měsíci

    Hi webdevsimplified, please i have a request, can you make a video and show some tips and tricks to make the website fully responsive with all screens ? Thank you very much for your content !

  • @user-mj1uo5mc1x
    @user-mj1uo5mc1x Před 2 měsíci

    Do you have a video of how to implement SSR step by step? I haven’t been able to get SSR to work with react.

  • @fordycegozali241
    @fordycegozali241 Před 6 měsíci

    If I have a news portal that is built using React and I have about 10 articles per day, is it still recommended to use SSR for better SEO?

  • @Manish___Choudhary
    @Manish___Choudhary Před měsícem +1

    Which will be best for an e-commerce website?

  • @firstname4337
    @firstname4337 Před 6 měsíci +3

    CCR - creedence clearwater revival

  • @CodingPuff
    @CodingPuff Před 6 měsíci

    Looking at your summary graph it’s almost as if we are going back to the old way progressively😂

  • @cherubin7th
    @cherubin7th Před 6 měsíci +5

    CSR is best for free and open source stuff because of money constrains.

    • @repairstudio4940
      @repairstudio4940 Před 6 měsíci

      Too bad most suffer from CRS and will never remember CSR or any of this. 😂

  • @saputrauta09
    @saputrauta09 Před 4 měsíci

    Thankyou!

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

    Correct me if i am wrong : the build process happens ONCE, after any new codes changes, by the HOSTING platform (Vercel, Netlify etc) ?

  • @smooticus1691
    @smooticus1691 Před 6 měsíci +8

    One question, wouldn’t a CSR website have cheaper server costs than a SSR website? If so, is it by a significant amount?

    • @keithjohnson6510
      @keithjohnson6510 Před 6 měsíci +4

      Yes, especially when the site has lots of dynamic content. There is currently lots of hype about all variants of SSR, and with all this hype developers have forgotten about the benefits of CSR, very stange. It's never been a better time to develop with CSR, so it's not something I'm moving away from any time soon.

    • @VioNectro
      @VioNectro Před 6 měsíci

      If your clients can’t render your page with csr in todays age then there is a serious issue with your page.

    • @IvanRandomDude
      @IvanRandomDude Před 6 měsíci +1

      Yes, in principle. However, CSR sites can have huge problem with waterfalls (especially if you are not careful how you fetch the data) which can lead to spikes on the server and degraded performance. None of these rendering strategies are silver bullets and have their pros and cons. That's why most modern frameworks allow you to use all of them inside the same application and decide per page basis how is your page going to be rendered. So one page can be prerendered and served as static content, other page might use SSR while some other page can be pure CSR.

    • @keithjohnson6510
      @keithjohnson6510 Před 6 měsíci +1

      @@IvanRandomDude "However, CSR sites can have", the main point here is `can have`, SSR can have issues if badly written. But based on what the poster asked about server costs, unless SSG all the other SSR variants including, Reacts new RSC etc, will all come with server costs. But like you say, a hybrid option would certainly be a good idea, especially a mix of SSG & CSR, this mix should then keep server costs down.

  • @ZainRamzan-pt8cm
    @ZainRamzan-pt8cm Před 6 měsíci

    @WebDevSimplified can you make a video on SSR , SSG, ISR using the next 14

  • @FunctionGermany
    @FunctionGermany Před 6 měsíci +3

    mostly correct, but i have a few gripes:
    SSR and static files is how the web started and people already wrote their own SSG systems back then.
    what's new about next.js's SSR is the hydration where you essentially have SSR and CSR, so the "best experience" but also the highest amount of work with server and client combined.
    and now we have server components where we can choose to not hydrate some components and reduce CSR.
    another big advantage of SSG or SSR are link previews on social media and messengers.
    and finally, these strategies are often mixed.
    for example, you can SSR the SEO and link preview relevant parts but then use CSR only for the rest of your website. or you can use SSG with (next without server components) or without (astro) CSR. or selective CSR with astro.
    so in reality most projects are more complicated than this, especially if the dev doesn't know what they're doing 😂

  • @SLRModShop
    @SLRModShop Před 6 měsíci +51

    It's easy, SSR is Screen Space Reflection, I clearly don't need this video, I'm just going to watch it for entertainment purposes 😁

    • @sicfxmusic
      @sicfxmusic Před 6 měsíci +1

      When artists' jobs are in jeopardy and now they're forced to learn programming.😅

    • @g_pazzini
      @g_pazzini Před 6 měsíci

      dude

    • @user-ge1sq3nx1z
      @user-ge1sq3nx1z Před 6 měsíci +1

      your an inspiration to us all…

    • @motabhai8767
      @motabhai8767 Před 6 měsíci

      so you never used CSR. so only php till now ?

  • @kueifengtung2693
    @kueifengtung2693 Před 5 měsíci

    So for spring And spring boot, which type is it? Ssr?

  • @SERGIVILAORIOL
    @SERGIVILAORIOL Před 2 dny

    How would the graph Client / Server / Build be if the environment we were talking was virtual reality videogames or to make it less specific multiplayer videogames, how would the graph be for SSR and CSR, clearly similar, but would the build be change for another part of the system. If so could someone show me please or explain it? Thanks

  • @chasec4897
    @chasec4897 Před měsícem

    But how is any one of the methodologies created ? how do I create a web app having ssr or isr or even csr? I know on NextJS we created specific components to be csr, but what about isr and the others?

  • @bobkazamakis5169
    @bobkazamakis5169 Před 3 měsíci

    great job

  • @sae11
    @sae11 Před 6 měsíci +1

    How about React Server Components (RSC)?

  • @alivenumber5
    @alivenumber5 Před 5 měsíci

    Minimize the amount of work done on the client. Minimize the amount of work done on the server during route handling and general GET requests. But during either the build step or application back-end startup you cache everything you can in-memory. And what you can't fit in memory you save as pre-cached html on disk. This is the way.

  • @arijitroy5695
    @arijitroy5695 Před 6 měsíci

    Could you please provide an examples of each different technique in your CZcams channel.

  • @user-ut4hj7kc1t
    @user-ut4hj7kc1t Před 4 měsíci

    Love there colors)

  • @mr_hassanali
    @mr_hassanali Před 6 měsíci

    Thanks

  • @devrajparida828
    @devrajparida828 Před 6 měsíci

    Does ISR works well with SEO?

  • @alitonoliveira1700
    @alitonoliveira1700 Před 6 měsíci

    For some reason revalidate does not seems to work for ISR. For me, ISR is working just like SSR.

    • @Daddyjs
      @Daddyjs Před 6 měsíci

      You have to set when the cache should re validate the data.

  • @mikescholz6429
    @mikescholz6429 Před 6 měsíci +1

    My first SSR is old enough to legally drink already lol

  • @iMagicGraalOnline
    @iMagicGraalOnline Před 6 měsíci +2

    I would love to see another channel called just "Dev Simplified" where Kyle helps us out with other languages and areas of development. Would be very refreshing

  • @TheTrainWatch
    @TheTrainWatch Před 6 měsíci

    I’m not sure it is fair to show all the bars as the exact same size. SSR can eliminate round trip network calls that happen with CSR

  • @mattskelton7471
    @mattskelton7471 Před 6 měsíci +2

    I miss the good 'ol LAMP days.

  • @aleattorium
    @aleattorium Před 6 měsíci

    For aaall that isn't it less complex to just do things in a framework like Elixir and use liveview?

  • @kemekenneth
    @kemekenneth Před měsícem

    Did I hear "everytime that I create a new blog article, I just rebuild..."
    I want the benefit of SSG without rebuilding anytime I publish a new article.

  • @samislam2746
    @samislam2746 Před 6 měsíci

    Please make server components video 😢

  • @vaaljan
    @vaaljan Před 6 měsíci

    SSR -> Doing the work on your server, means you pay right. If the user does the work. nobody pays.
    So when that scales to like Million users you gonna get a pretty aws bill.
    Think combination of csr and ssr makes sense to me

  • @CheskerHard63
    @CheskerHard63 Před 6 měsíci

    wow thanks you

  • @mecozir
    @mecozir Před 6 měsíci

    if run is style basic make does code exit password

  • @jonathangamble
    @jonathangamble Před 6 měsíci +1

    No Black Friday deals?

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff Před 6 měsíci

    02:18 how is it server rendered if server just sends html and client does rendering to screen?

    • @bo-kaiwang5189
      @bo-kaiwang5189 Před 6 měsíci +1

      To my understanding, 'rendering' in SSR and CSR means to generate your html contents (texts, images, etc), so in SSR, the server has already generated those things and what the client only needs do is produce the visual representation of your html contents. On the other hand, in CSR, the server doesn't generate your real html contents. The client generates those things and produces the visual representation

  • @user-iu6hu8oq5p
    @user-iu6hu8oq5p Před 6 měsíci

    Thank you for the video. I'm not sure where the breaking point for CSR is exactly though. I've never seen any client-side problems with CSR for the sites I've built. Is there like a rule of thumb for this that is more specific than just "as your application scales"? And how should one exactly look for problems with CSR?

  • @LaLoses
    @LaLoses Před 4 měsíci

    You missed one thing.
    💸💸Pricing!!!
    If the server does many builds, it will increase the memory usage and will impact the monthly bill.
    Or doesn't? What its your experience?
    Going full CSR is the cheapest?

    • @LaLoses
      @LaLoses Před 4 měsíci

      Great video tho

  • @mecozir
    @mecozir Před 6 měsíci

    related table throw IDE

  • @tognolibsas
    @tognolibsas Před měsícem

    in CSR build time should be less.

  • @wekesirken6961
    @wekesirken6961 Před 6 měsíci

    What's up Kyle

  • @Daddyjs
    @Daddyjs Před 6 měsíci

    ISR FOR THE WIN

  • @regime5070
    @regime5070 Před 6 měsíci

    I know them but not as acronmysm

  • @aytviewer2421
    @aytviewer2421 Před 5 měsíci

    CSR = Client Service Request
    It's been used for 20-30 years. This is an ongoing problem it the IT/Development world. Folks keep repurposing acronyms that are already in place.

  • @bmehder
    @bmehder Před 6 měsíci

    What would we do with Kyle? We got to pull together and get my man a double guitar stand and maybe a picture or two for those walls.

  • @redgood5879
    @redgood5879 Před 6 měsíci

    they means: CHAOS

  • @re.liable
    @re.liable Před 6 měsíci

    ISR: International Space Ranger

  • @code.design
    @code.design Před 6 měsíci +1

    Just like the Beatles. I use USSR.

  • @sandorturbucz425
    @sandorturbucz425 Před 6 měsíci +1

    Wheel reinvented over and over again and again.
    Let me guess the next BS acronym in this series: HSG: Hybrid Site Generation - this combines the benefits of SSR, SSG and ISR, with literally no downsides at all - all of your pages can be generated in a mixed manner, some parts of the page is staticly built, other chunks are dynamic and hydrated, with interactivity.
    Your turn what's next?
    Hmm maybe I will write a framework for writing frameworks that can produce a new page generator strategies in no time.

  • @typoerror177
    @typoerror177 Před 6 měsíci

    you forgot one acronym: PHP

  • @64_bit_coding
    @64_bit_coding Před 6 měsíci

    hello

  • @TheBlackGentlemanGeek
    @TheBlackGentlemanGeek Před 6 měsíci

    They should add SSJ, SSJ2, SSJ3, etc., to make it more dragon ball. What about USSR for the OG’s… CIA, FBI, anyone?
    Relax guys, I’m trolling.

  • @TylerR909
    @TylerR909 Před 6 měsíci

    Didn't even say CMS once! Edit: 'ope, there it is

  • @cv3509
    @cv3509 Před 6 měsíci +1

    Hey Kyle, Those are not Acronyms. They are called abbreviations or Initialism. 😊

  • @Joe-SoftwareEngineer
    @Joe-SoftwareEngineer Před 6 měsíci

    SSR? CSR? SSG? ISR? WTF? 😄😄

  • @paxdriver
    @paxdriver Před 6 měsíci

    They are "initialisms" not "acronyms"
    I'm not trying to be a douche correcting you, but I believe educational content merits strict scrutiny for posterity, that's all.

  • @axMf3qTI
    @axMf3qTI Před 6 měsíci

    so where does htmx fall? it's the old way or ssg with dynamic html insert into the page, i'll guess that part ssr. when i first heard about ssr i thought that's what it meant html snippets send to the browser.

  • @vichetnoeng706
    @vichetnoeng706 Před 6 měsíci +2

    Which one is great for SEO?

    • @tom_cl_1342
      @tom_cl_1342 Před 6 měsíci +2

      I guess all of them except CSR?
      I hope one day the bots are "smart" enough and we don't need to worry about SEO when using CSR😅

    • @Dev-Siri
      @Dev-Siri Před 6 měsíci

      ​@@tom_cl_1342 even if the bots were "smart" enough, CSR SEO is far from ideal

    • @DamirSecki
      @DamirSecki Před 6 měsíci +1

      All of them are, even CSR. Sionce most of the search engines run headless browsers and compile and run JS just fine. But you do get some benefits from SSR/SSG and the other one in terms of speed, since the search engines favor speed a bit more (especially SSG is great for that).