Choosing between SSR, SSG, and dynamic rendering in Astro

  Рет қаралды 19,615

Coding in Public

Coding in Public

Күн бұрын

Пікірлер: 101
@mrrolandlawrence
@mrrolandlawrence 10 ай бұрын
this astro series is the best out there. saves me fumbling with the core docs. practical examples always help.
@CodinginPublic
@CodinginPublic 10 ай бұрын
So glad you’ve enjoyed the videos!
@aryomuhammad8254
@aryomuhammad8254 11 ай бұрын
I really love how you explained things with drawing style like this, it really helped a lot. Thank you!
@CodinginPublic
@CodinginPublic 11 ай бұрын
You're very welcome! So glad it was such a help!
@unity_12
@unity_12 Жыл бұрын
I can never figure out how it all works. Through videos and diagrams it became clear. I'm waiting for a video with hybrid rendering! I liked the video 😇
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@egrekov
@egrekov Жыл бұрын
Please continue this series. It's very useful and important for me. Thank you
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was a help!
@ytdevs
@ytdevs 3 күн бұрын
This is the best explanation I’ve seen yet, thanks a ton 🎉 loving those diagrams ❤💪🏾
@CodinginPublic
@CodinginPublic 3 күн бұрын
🙌 glad it helped!
@hiryuimajin
@hiryuimajin Жыл бұрын
Your teaching is always amazing!
@CodinginPublic
@CodinginPublic Жыл бұрын
Thanks for the kind words! So glad you enjoyed it!
@JavArButt
@JavArButt Жыл бұрын
I have seen only some of your videos, up to now, I liked them all
@CodinginPublic
@CodinginPublic Жыл бұрын
Thanks, my friend. Glad they’ve been a help!
@jamesgrubb
@jamesgrubb Жыл бұрын
Thanks for this content and your time. Middleware examples would be great - perhaps authentication / authorisation how-to
@CodinginPublic
@CodinginPublic Жыл бұрын
Working on something right now that could use some middlewear…I'll see about figuring it out and doing a video! Thanks for the comment!
@latch909
@latch909 Жыл бұрын
Unbelievable I didn't think to just build locally and look at the difference like this! Super clear information thank you
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@chrisbrace6915
@chrisbrace6915 6 ай бұрын
OK! Awesome video. Showing both the conceptual layout visually as well as code example reinforcing that concept and showing what changes.
@CodinginPublic
@CodinginPublic 6 ай бұрын
Glad you enjoyed it!
@secondubly
@secondubly Жыл бұрын
just want to say a huge thanks for this video, it really helped me grasp exactly what adapters and SSR/SSG were doing because reading it in the docs it wasn't really sticking 😅
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was such a help! Visuals are often what unlocks concepts for me, so I’m glad it was a help.
@jmonterroso.dev13
@jmonterroso.dev13 Жыл бұрын
Great video as always and yes please, we all want the video of Middleware and astro island!!
@RodrigoDAgostino
@RodrigoDAgostino Жыл бұрын
Such a clear explanation! Thank you for taking the time to not only explain the theory, but to also illustrate it through a good example. I’m really enjoying your content! :)
@CodinginPublic
@CodinginPublic Жыл бұрын
You're very welcome! So glad it was helpful!
@seghirissam2662
@seghirissam2662 6 ай бұрын
Best channel to learn Astro out there. Thank you for this stunning content!
@CodinginPublic
@CodinginPublic 6 ай бұрын
Wow, thank you!
@joshreynolds4164
@joshreynolds4164 Жыл бұрын
Visuals really helped on this one!
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@systematicpsychologic7321
@systematicpsychologic7321 Жыл бұрын
Thanks, this was a pretty great overview. Simple and informative. Makes me look forward to using Astro in a project.
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad you enjoyed it!
@murtadha96
@murtadha96 Жыл бұрын
An absolutely fantastic explanation! Thank you
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was helpful!
@21rogerwaters
@21rogerwaters Жыл бұрын
Wow! Thank you! Great visual explanation, please do more like that =)
@CodinginPublic
@CodinginPublic Жыл бұрын
Thanks, my friend. Glad you enjoyed it!
@christianseiler1250
@christianseiler1250 Жыл бұрын
Love your Astro videos - extremely clear and step by step. There is one thing I cannot figure out - which is how to access reference() data from a collection properly . Maybe you could do a short video about it one day?
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad you’ve enjoyed them. I think the content collections video should help with that (kzbin.info/www/bejne/sIbQoqCriNt9g9U). Let me know if you still have questions!
@sonny5497
@sonny5497 9 ай бұрын
this was beautifully explained with diagrams. you are an amazing teacher 🎉
@CodinginPublic
@CodinginPublic 9 ай бұрын
Glad it was helpful! Thanks for the kind words!
@MarkDeibert
@MarkDeibert Ай бұрын
Great tutorial and explanation of Astro functionality. Really enjoyed this. Idea for an Astro tutorial: Explain how to set cookies that *do not disappear on redirect*. I spent nearly 2 days trying to make this work. I finally got it late yesterday.
@MarkDeibert
@MarkDeibert Ай бұрын
The VS Code font and icons links above work, but theme link gives 404 page
@LeoMiranda
@LeoMiranda Жыл бұрын
Fantastic explanation, thanks
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@sujit_webdev
@sujit_webdev 10 ай бұрын
Thanks for such an amazing explanation and this extremely useful video!
@CodinginPublic
@CodinginPublic 10 ай бұрын
You're very welcome!
@diegoulloao
@diegoulloao 8 ай бұрын
Amazing explanation. Really clear
@CodinginPublic
@CodinginPublic 8 ай бұрын
Glad it was helpful!
@oussamasethoum1665
@oussamasethoum1665 Жыл бұрын
This video was so clear and I understood everything, thank you so much.
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was helpful!
@FumezCreates
@FumezCreates 11 ай бұрын
I love Astro. Your explanation is magnificent
@CodinginPublic
@CodinginPublic 11 ай бұрын
Thanks for the kind words!
@rayusaki88
@rayusaki88 Жыл бұрын
Vey helpful. Thanks 🙏🏻. Looking forward on your Astro course
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@issa.garcia
@issa.garcia Жыл бұрын
Great content! Love how you explain!
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@andrezorek
@andrezorek Жыл бұрын
thank you, so much, dude. great content, very clear, very straightforward.
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@akosbalint3485
@akosbalint3485 Жыл бұрын
Very good explanation. Thank you.
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@Oggy-WanKenobi
@Oggy-WanKenobi Жыл бұрын
This is a great resource! Thanks a ton
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad you enjoyed it!
@javayhu
@javayhu 9 ай бұрын
Fantastic explanation, thanks a lot. I wondered that if there is a way to implement /posts/[id].astro to support both SSG and SSR? Let's say I have 10,000 blog posts, and we only do SSG if id is
@CodinginPublic
@CodinginPublic 8 ай бұрын
Not that I know of currently unless you picked off a few and had their blog layout wrapper set to prerender and the rest not? But they are working on ISR, so that would be the best solution. Hopefully soon!
@onorlidmedina
@onorlidmedina Жыл бұрын
Great video, can you make a video about foms with astro? Thank you
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad you liked it! What would you like to know about forms?
@AppyDave
@AppyDave 6 ай бұрын
Good video thank you, I'm wondering what diagram tool you are using?
@CodinginPublic
@CodinginPublic 6 ай бұрын
Glad you enjoyed it! It’s called tldraw:)
@AppyDave
@AppyDave 6 ай бұрын
@@CodinginPublic thank you, much appreciated
@tiscover
@tiscover Жыл бұрын
As always - great video Chris! Is there a way that Astro only renders "new" content? This would be really helpful in combination with a CMS: Let's say a client changes some text in the CMS and Astro does not generate the whole site, but only the text that was changed. Thanks anyway
@CodinginPublic
@CodinginPublic Жыл бұрын
Not to my knowledge. SSR or SSG is all at the page level (meaning you have to decide for the whole page). Perhaps in the future? I don't know if anyone even does that sort of thing?
@ctrlteam5168
@ctrlteam5168 Жыл бұрын
I really like Astro, I have a question. What is Astro's current positioning? Is it SSR service or spa single page application or SSG? Where is the center of gravity of Astro? Thank you.
@CodinginPublic
@CodinginPublic Жыл бұрын
So right now it’s geared towards MPAs. While it defaults to using SSG, you can easily use SSR as I show here. You can create a SPA experience using react or something but at that point it would make more sense to just use Next or something that is react-only. I do have a few Astro sites with an admin section that is completely SPA in that route. I just use react router dom for that section to do all the internal routing. Hope that helps.
@qasimarif9921
@qasimarif9921 Жыл бұрын
Hey! Love the content man. This was great to watch. I’ve got a mostly static site I’m building in Astro but plan to use some React for components and some packages. Thing is React is quite heavy in size and I’m trying to keep it as light as possible. Would I benefit from using SSR here at all to avoid React being called on the client side? (And avoid that 100kb load as it’s called and rendered on the server?)
@CodinginPublic
@CodinginPublic Жыл бұрын
You’re welcome! Well, if you’re using react, it’ll still load react on the page if you build it server side. You could use the client:visible directive to ensure the react only loads if people get to a section on the page that needs it?
@funkologie
@funkologie Жыл бұрын
Thanks Chris!
@CodinginPublic
@CodinginPublic Жыл бұрын
You’re welcome!
@HeyWorld-o8j
@HeyWorld-o8j Жыл бұрын
Which UI framework deliver the less amount of JavaScript in your experience? I still can't make up my mind whether to use Preact or Svelte. But no Alpine as I didn't want to littering my markup.
@CodinginPublic
@CodinginPublic Жыл бұрын
I don't know that I have a recommendation between those two. I would guess Svelte? But that's merely a guess. I'd think both would be quite quick for most apps though?
@HeyWorld-o8j
@HeyWorld-o8j Жыл бұрын
@@CodinginPublicTrue, those are familiar with, I'm just so familiar with vanilla. If only we can solve the last piece of the tetris colors, the "red" UI framework being missing, no Ember or Angular. Maybe Astro should have one for client-side.
@nickwoodward819
@nickwoodward819 9 ай бұрын
2:54: Now that's a diagram that should be in the docs :)
@CodinginPublic
@CodinginPublic 9 ай бұрын
Haha glad it was helpful!
@sistana
@sistana Жыл бұрын
Thanks, very helpful, I want to know a litle about islands and midleware in Astro
@CodinginPublic
@CodinginPublic Жыл бұрын
Cool! I'll plan a tut! Thanks for saying something!
@richardramirez5746
@richardramirez5746 8 ай бұрын
have you made astro work in old browsers using legacy vite?
@CodinginPublic
@CodinginPublic 8 ай бұрын
I haven’t! What are your needs?
@richardramirez5746
@richardramirez5746 8 ай бұрын
@@CodinginPublic When using Astro with vite legacy plugin, legacy scripts are generated in fact, but they do not get injected into page as Vite does when working without Astro. So my concern is having a non-running page in old browsers.
@Web-Dev-Codi
@Web-Dev-Codi Жыл бұрын
I have been thinking about messing around with Astro for a while. I will be making the jump for sure after seeing this video. I love the illustrated visual aspect in this one. What program are you utilizing for the demonstration?
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help! It’s called TLDraw, I think.
@eannadefreine6671
@eannadefreine6671 Жыл бұрын
Really interesting video. I wonder what happens when you have a component on every page, a footer for example, that needs to be SSR. Is it still possible to benefit from SSG for the actual route no just SSR the footer?
@CodinginPublic
@CodinginPublic Жыл бұрын
Currently it’s all page level, meaning you have to decide SSR or SSG for an entire page. Perhaps there are plans to change that in the future? I'm not sure if any frameworks are offering that though?
@inujung8224
@inujung8224 Жыл бұрын
i think the diagram for const prerender is kinda opposite here? for SSG prerender should be true and SSR it should be false.
@CodinginPublic
@CodinginPublic Жыл бұрын
I don't remember what my diagram mentioned, but prerender only works when you're already in SSR mode (either "server" or "hybrid"). In that case, "server" makes everything NOT prerendered by default and you have to pass prerender = true to change that. "Hybrid" is the opposite. Hope that helps!
@SalvaToroTorus
@SalvaToroTorus Жыл бұрын
Excellent
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad you found it helpful!
@nikkehtine
@nikkehtine Жыл бұрын
Nice video
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad you enjoyed it!
@nickwoodward819
@nickwoodward819 4 ай бұрын
Honestly, I'm going to keep count of the times I refer to this. I might as well start at '4' given how many times I've been here. You'd think I'd learn...
@韩北坡
@韩北坡 6 ай бұрын
great
@CodinginPublic
@CodinginPublic 6 ай бұрын
🙌
@TheBuddilla
@TheBuddilla Жыл бұрын
My islands will be htmx LOL
Astro Crash Course in 20 Minutes!
22:07
Coding in Public
Рет қаралды 62 М.
Build a Web Server with Node.js in Minutes! | Complete Guide
12:00
LearnAIwithBibhu
Рет қаралды 85
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Designers Learn Code: Cross Browser Compatibility
2:40
Designers Learn Code
Рет қаралды 4,8 М.
🏝️ The Server Islands hype is real!
15:11
Coding in Public
Рет қаралды 10 М.
How to work with data in Astro
26:04
Coding in Public
Рет қаралды 26 М.
Why Did Astro Make A Database?
25:01
Theo - t3․gg
Рет қаралды 55 М.
The problem with server actions
16:32
Ben Holmes
Рет қаралды 25 М.
You may not ACTUALLY understand Content Collections…
42:03
Coding in Public
Рет қаралды 14 М.
Do you REALLY need SSR?
18:15
Theo - t3․gg
Рет қаралды 184 М.
Astro Actions (First Look!)
13:15
Coding in Public
Рет қаралды 9 М.
MUCH BETTER Performance with Astro Server Islands
19:48
James Q Quick
Рет қаралды 4,7 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН