🏝️ The Server Islands hype is real!

  Рет қаралды 8,709

Coding in Public

Coding in Public

Күн бұрын

Пікірлер: 40
@ComradeIntensE
@ComradeIntensE 3 ай бұрын
Awesome explanation Chris ! I learned so much from you, thank you 🍻🍺
@CodinginPublic
@CodinginPublic 3 ай бұрын
Glad you enjoyed it!
@simonswiss
@simonswiss 2 ай бұрын
Awesome video Chris! Love how these server islands are so similar to client islands in concept - and as easy to use with Astro's wonderfully simple APIs 🔥
@masterfraud
@masterfraud 3 ай бұрын
I’ve been watching your videos for some time now, I really like your explanation and I plan soon to try out astro for my projects, top tier content
@dageddy
@dageddy 3 ай бұрын
Wonderful new Astro feature and great introductory video!
@Goyo_MGC
@Goyo_MGC 3 ай бұрын
Would love to see more in depth examples with nested island. What would be your approach on let's say a Server island that would need interactivity ? Would you convert it all to client or would you integrate a client island into the server island ? I like the concept of having multiple rendering pattern but it always scratch the surface and does not go to production level problems that might occur. All the best mate
@chrispeele3746
@chrispeele3746 2 ай бұрын
Great content as always! I think by “customizable” you mean “dynamic”? Serves dynamic content to the user. Customizable implies the user customizing that element with various options or whatnot. Again, great video!
@MatTeague
@MatTeague 3 ай бұрын
I hope this comes to the course. Would love a more in-depth example
@facundoleonel487
@facundoleonel487 3 ай бұрын
Awesome this feature changes a lot of things. I have a question, have you ever deployed to cpanel in an astro project?
@cb73
@cb73 2 ай бұрын
So… basically htmx? I’m not seeing how that is streamed in.
@bobbyb6412
@bobbyb6412 3 ай бұрын
still a bit confused how this is done if it's all just html? how is html slotted into a html site without using javascript? or is there like a mini javascript framework added ala htmx?
@dageddy
@dageddy 3 ай бұрын
There is a small JavaScript together with the main static page that fetches the island content.
@bobbyb6412
@bobbyb6412 3 ай бұрын
@@dageddy ah okay, so it's a bit like htmx, was just confused there for a second
@CodinginPublic
@CodinginPublic 3 ай бұрын
I could have been clearer. There’s a small INLINE script, that does all the work but there’s no extra fetch for a JS bundle.
@bobbyb6412
@bobbyb6412 3 ай бұрын
@@CodinginPublic what tripped me up about server islands, is that it seems a lot like HTMX except that you can only dynamically render the islands on a request/reload. seems like there is no way to only re-request a server island once the page is loaded (to check if the number of available rooms has changed in the mean time for example) correct? noob here
@AndreiGeorgescu-j9p
@AndreiGeorgescu-j9p 3 ай бұрын
As typical with web developers they say things that aren't true and then confuse everybody. Like how you typically hear that js only uses one thread. No it also uses the systems threads, having a main loop doesn't mean you can't use anything else otherwise async wouldn't be possible. So yes there's still js, the part that manipulated the Dom client side is the only difference but that doesn't sound as cool
@qazyhn94
@qazyhn94 3 ай бұрын
basically react server components?
@AndreiGeorgescu-j9p
@AndreiGeorgescu-j9p 3 ай бұрын
So basically instead of a jamstack fetch that gets you JSON back which is then used by the client side JS to manipulate the DOM with, you do a fetch that has the server generate HTML or grab it from a cache which means you end up with 0 client side js besides fetches for about the same speed if not possibly faster (due to caching)?
@CodinginPublic
@CodinginPublic 3 ай бұрын
Yep! And you can statically render the pages using SGG if it fits your use case and get that core content cached on a distributed CDN for really fast FCP.
@AndreiGeorgescu-j9p
@AndreiGeorgescu-j9p 3 ай бұрын
@@CodinginPublic so are htmx and vite redundant?
@aldierygonzalez7249
@aldierygonzalez7249 3 ай бұрын
@@AndreiGeorgescu-j9p No from what it seems this only targets initial render. If you were using htmx to do this streaming then you could go ahead and refactor it out 🎉! Otherwise if you were doing something like having a number next to the cart with the amount of items, that would need further interaction as the user uses the site like refetches for that one component.
@okkashaally2115
@okkashaally2115 3 ай бұрын
What's the difference with NextJS?
@CodinginPublic
@CodinginPublic 3 ай бұрын
Different infrastructure but same basic result.
@asimalqasmi7316
@asimalqasmi7316 3 ай бұрын
Is it the same as parial rendering in Nextjs?
@CodinginPublic
@CodinginPublic 3 ай бұрын
Similar. Different infrastructure. Same basically result.
@lornelorne5727
@lornelorne5727 Ай бұрын
How can this possibly work without JavaScript?
@CodinginPublic
@CodinginPublic 16 күн бұрын
I probably wasn’t clear enough. Astro ships a tiny inline JS script to do the fetch but you don’t have to write any JS to make it happen and it doesn’t have to download and parse a JS file to make this happen. So it effectively has no impact on the client.
@ElLevidente
@ElLevidente 3 ай бұрын
It's crazy how we already solved these problems more than 20 years ago with PHP and now the JS community acts like it's inventing these as new concepts
@chauchau0825
@chauchau0825 3 ай бұрын
if anyone points out this obvious fact, they will be offended 😊
@Taddy_Mason
@Taddy_Mason 3 ай бұрын
Job security maybe?
@CodinginPublic
@CodinginPublic 3 ай бұрын
Ha well, a few thoughts. I know Astro in particular has leaned into the “back to PHP” memes at least and not everyone has written PHP, so it’s new to a lot of us that have just started in web dev. Nice to have the best of interactivity with JS and some of the tested web patterns. Thanks for your perspective.
@anyadatzaklatszjutub
@anyadatzaklatszjutub 2 ай бұрын
php had client level interactivity 20 years ago? that's new to me can someone link me a source if true? my understanding is that the island architecture in this form is relatively new i've heard Ryan Carnito talk about ... yahoo? or amazon? having some early internal frameworks that was basically islands, they just never used it in production, for reasons
@GarTheStar
@GarTheStar 25 күн бұрын
​@@anyadatzaklatszjutub Technically u just used jQuery after PHP loaded. Which tbh solved every single issue.
@dynamohack
@dynamohack 3 ай бұрын
use php and forget any of it
@CodinginPublic
@CodinginPublic 3 ай бұрын
Ha someone else mentioned that PHP has had this for 2 decades. Nice to get it in JS land. Only two decades late. Ha
@petmik5022
@petmik5022 3 ай бұрын
same principle XHR uses years Vaadin framework in Java, no js coding, web and server side components comunicate togehter, so Astro is good solution same way like Vaadin, but Vaadin os good for web apps, Astro I will use for more static sites, looks great
@CodinginPublic
@CodinginPublic 3 ай бұрын
Never heard of Vaadin. Cool. Thanks!
Server Islands are really cool
35:07
Theo - t3․gg
Рет қаралды 72 М.
Choosing between SSR, SSG, and dynamic rendering in Astro
12:19
Coding in Public
Рет қаралды 18 М.
Каха и лужа  #непосредственнокаха
00:15
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 73 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 5 МЛН
Working with Images in Astro
15:13
Coding in Public
Рет қаралды 8 М.
MUCH BETTER Performance with Astro Server Islands
19:48
James Q Quick
Рет қаралды 3,5 М.
The Future of Astro is...
19:09
Astro
Рет қаралды 14 М.
That's It, I'm Done With Serverless*
23:58
Theo - t3․gg
Рет қаралды 204 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 646 М.
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
Sam Meech-Ward
Рет қаралды 125 М.
Astro for Impatient Devs
10:35
Isaac Harris-Holt
Рет қаралды 15 М.
Astro Actions: the missing server action library
19:28
Astro
Рет қаралды 13 М.
Astro makes websites faster & easier to build
22:55
Kevin Powell
Рет қаралды 124 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 926 М.