One of the most overlooked topics in web dev. Thank you for making it so simple and clear!
@carlosmspk Жыл бұрын
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?
@JominJose11 ай бұрын
@@carlosmspkYes, that's what I meant
@venkat.sairam Жыл бұрын
🎯 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
@saralightbourne Жыл бұрын
😰😰😰
@69k_gold5 ай бұрын
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
@musazahoor3 ай бұрын
thnks
@lakshmann98252 ай бұрын
noice tq
@deanarvin18 күн бұрын
This is a great way to picture things. Thank you.
@nid30 Жыл бұрын
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...!!🙌🙌🙏🙏
@RomanWaves11 күн бұрын
Thanks for the overview. It would be great to have existing examples for each technique to make it more clear
@pxkqd Жыл бұрын
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.
@ansh_mittal Жыл бұрын
One day I saw this channel and now I am very confident in web dev thanks dude ❤❤❤🎉
@callixtegirard47822 ай бұрын
Kyle, your videos about React and also web-related topics like this are the best I found. And also, yes, this topic is so overlooked and you explained it so well. Kudooooos
@theisoj Жыл бұрын
You explained this really well! Thanks Kyle as always! 👍👍
@vaaljan11 ай бұрын
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
@incarnateTheGreat Жыл бұрын
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.
@Akash_Unreal11 ай бұрын
What's the issue with re hydration explain a bit more brother
@eyadelghobary9093Ай бұрын
This is a great video, it explains all terms in a very way!
@MrHellmager Жыл бұрын
This honestly been in the back of my mind for weeks. Thank you for addressing this topic.
@ff-mj2fv Жыл бұрын
Please keep on posting top notch videos and i especially like your shorts 🔥
@somethingwine5 ай бұрын
I accidentally clicked this video and really enjoyed it! Love how you explain things so clearly! I am a complete beginner so some of the terms are still a lil abstract for me; but overall I find it very informative and will definitely come back to this again when I learn more about web dev! Thank you!
@atmanatos7165 Жыл бұрын
Hi Kyle. Been a while since your last comprehensive MySQL course. Please do a fully comprehensive one that touches the advanced levels.
@SLRModShop Жыл бұрын
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 Жыл бұрын
When artists' jobs are in jeopardy and now they're forced to learn programming.😅
@g_pazzini Жыл бұрын
dude
@HighfieldFarm-w1z Жыл бұрын
your an inspiration to us all…
@motabhai876711 ай бұрын
so you never used CSR. so only php till now ?
@systematicpsychologic7321 Жыл бұрын
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.
@afonsonzango Жыл бұрын
You make everything look easy! Thanks bro!
@FunctionGermany Жыл бұрын
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 😂
@smooticus1691 Жыл бұрын
One question, wouldn’t a CSR website have cheaper server costs than a SSR website? If so, is it by a significant amount?
@keithjohnson6510 Жыл бұрын
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 Жыл бұрын
If your clients can’t render your page with csr in todays age then there is a serious issue with your page.
@IvanRandomDude Жыл бұрын
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 Жыл бұрын
@@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.
@ExtraTurtle8 ай бұрын
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?
@alivenumber510 ай бұрын
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.
@Manish___Choudhary7 ай бұрын
Which will be best for an e-commerce website?
@nikhilsinha2191 Жыл бұрын
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
@yoavmelamed152211 ай бұрын
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?
@cherubin7th Жыл бұрын
CSR is best for free and open source stuff because of money constrains.
@repairstudio4940 Жыл бұрын
Too bad most suffer from CRS and will never remember CSR or any of this. 😂
@cameronadams43668 ай бұрын
Correct me if i am wrong : the build process happens ONCE, after any new codes changes, by the HOSTING platform (Vercel, Netlify etc) ?
@morraez4772 Жыл бұрын
This is a really goos explaination. would you consider doing a part 2 giving some code example for each type?
@DamirSecki Жыл бұрын
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...
@robinparadise Жыл бұрын
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 💀)
@prographics2788 Жыл бұрын
hey kyle, when will your next.js course be released ?
@chasec48976 ай бұрын
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?
@ticlaudeberube4 ай бұрын
Hi, this is a very good topic. However, it is missing two key elements: Progressive Enhancement and accessibility (a11y). I see the traditional approach and SSR as similar, both allowing for Progressive Enhancement to be a primary focus, offering the benefits of SEO and accessibility. I understand the hype around these new methods, but I believe that Javascript frameworks (SPA) are meant to address concerns beyond just website rendering. Using them for all purposes seems more like a marketing strategy than a technical necessity. Are we trying to reinvent the wheel here?
@SERGIVILAORIOL5 ай бұрын
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
@vichetnoeng706 Жыл бұрын
Which one is great for SEO?
@tom_cl_1342 Жыл бұрын
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 Жыл бұрын
@@tom_cl_1342 even if the bots were "smart" enough, CSR SEO is far from ideal
@DamirSecki Жыл бұрын
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).
@akshaygadekar3089 Жыл бұрын
There is also 'on-demand static regeneration'
@vampiping9 күн бұрын
NextJs is the combination of SSR and CSR
@AvikGhosh-d8t7 ай бұрын
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.
@sae11 Жыл бұрын
How about React Server Components (RSC)?
@kueifengtung11 ай бұрын
So for spring And spring boot, which type is it? Ssr?
@mattskelton7471 Жыл бұрын
I miss the good 'ol LAMP days.
@fordycegozali241 Жыл бұрын
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?
@Abul4u3 ай бұрын
what is the difference between traditional PHP(any CMS) SSR and JS framework (like Angular, React) SSR
@karimbouche3563 Жыл бұрын
Thank you kyle ,excellent video ,i like your content
@LaLoses9 ай бұрын
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?
@LaLoses9 ай бұрын
Great video tho
@shgysk8zer011 ай бұрын
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?)
@aqibmalik6313 Жыл бұрын
by the way I love your work. I have great admiration for you. Keep up the good work. ❤❤❤
@arijitroy5695 Жыл бұрын
Could you please provide an examples of each different technique in your KZbin channel.
@mme725 Жыл бұрын
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.
@CodingPuff Жыл бұрын
Looking at your summary graph it’s almost as if we are going back to the old way progressively😂
@codeingo2006 Жыл бұрын
dude great video
@alitonoliveira1700 Жыл бұрын
For some reason revalidate does not seems to work for ISR. For me, ISR is working just like SSR.
@zaynelovecraft Жыл бұрын
You have to set when the cache should re validate the data.
@devrajparida828 Жыл бұрын
Does ISR works well with SEO?
@aytviewer242111 ай бұрын
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.
@stacked-dev Жыл бұрын
@WebDevSimplified can you make a video on SSR , SSG, ISR using the next 14
@ahmedahmedx9600 Жыл бұрын
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 !
@mikescholz6429 Жыл бұрын
My first SSR is old enough to legally drink already lol
@kemekenneth6 ай бұрын
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.
@avertry9529 Жыл бұрын
Thanks, please do SolidJS tutorial
@aleattorium Жыл бұрын
For aaall that isn't it less complex to just do things in a framework like Elixir and use liveview?
@jonathangamble Жыл бұрын
No Black Friday deals?
@RandomGeometryDashStuff Жыл бұрын
02:18 how is it server rendered if server just sends html and client does rendering to screen?
@bo-kaiwang5189 Жыл бұрын
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
@iMagicGraalOnline Жыл бұрын
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
@firstname433711 ай бұрын
CCR - creedence clearwater revival
@coldcoder236 ай бұрын
in CSR build time should be less.
@samislam274611 ай бұрын
Please make server components video 😢
@re.liable Жыл бұрын
ISR: International Space Ranger
@bmehder Жыл бұрын
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.
@mecozir Жыл бұрын
if run is style basic make does code exit password
@regime507011 ай бұрын
I know them but not as acronmysm
@sandorturbucz425 Жыл бұрын
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.
@zaynelovecraft Жыл бұрын
ISR FOR THE WIN
@saputrauta099 ай бұрын
Thankyou!
@bobkazamakis51698 ай бұрын
great job
@mecozir Жыл бұрын
related table throw IDE
@TheBlackGentlemanGeek Жыл бұрын
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.
@user-iu6hu8oq5p Жыл бұрын
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?
@ДенисМалышок9 ай бұрын
Love there colors)
@TheTrainWatch11 ай бұрын
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
@everythingisfine99883 ай бұрын
Except for the initial page load, CSR is typically faster than SSR. Because you're only getting data. All the styling and functionality is already in the client browser. It's even possible to anticipate user interaction and pull data before the user moves onto a new screen. Thus creating a seamless app like experience.
@mr_hassanali Жыл бұрын
Thanks
@typoerror177 Жыл бұрын
you forgot one acronym: PHP
@code.design Жыл бұрын
Just like the Beatles. I use USSR.
@CheskerHard63 Жыл бұрын
wow thanks you
@redgood5879 Жыл бұрын
they means: CHAOS
@ShannonBelt-x6nАй бұрын
Elliot Ways
@wekesirken6961 Жыл бұрын
What's up Kyle
@TylerR909 Жыл бұрын
Didn't even say CMS once! Edit: 'ope, there it is
@64_bit_coding Жыл бұрын
hello
@cv3509 Жыл бұрын
Hey Kyle, Those are not Acronyms. They are called abbreviations or Initialism. 😊
@Joe-SoftwareEngineer Жыл бұрын
SSR? CSR? SSG? ISR? WTF? 😄😄
@paxdriver11 ай бұрын
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 Жыл бұрын
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.