Ryan Florence(@ryanflorence) 's Twitter Profileg
Ryan Florence

@ryanflorence

React Router, @remix_run, @shopify. Throttle your network

ID:1661132710679826432

calendar_today23-05-2023 22:11:31

7,2K Tweets

19,7K Followers

246 Following

Matt Kane(@ascorbic) 's Twitter Profile Photo

Remix doesn't have an image component and that's good actually.
I've written a guide showing how you can easily serve great images with Remix, and it's better than using most framework-specific components. Long time listeners can probably guess how.

account_circle
Ryan Florence(@ryanflorence) 's Twitter Profile Photo

I think folks don’t realize that at Shopify we probably have the most production experience with RSC than anybody (Hydrogen v1)

- there will be waterfalls
- there will be n+1 nightmares
- your infra determines how costly these facts are

I’m not just talking out of my butt

account_circle
Ryan Florence(@ryanflorence) 's Twitter Profile Photo

RSC requires data and rendering to be close

This kills TTFB since you now can’t render close to users (on vercel)

To mitigate, they send a static “shell”

But now you send a 200 for _every_ request 👎

RSC is hard to do w/o forcing tradeoffs like this on you, but we’re trying

account_circle
Ryan Florence(@ryanflorence) 's Twitter Profile Photo

HTTP needs a FOOT to go with the HEAD that lets you define the status

Out of order streaming is cool, but…

Stream too early and you have to send a 200 before you really know

Stream later and you slow down the page

Would be cool to send 100 in HEAD and then a 200/404 and even…

account_circle
Ryan Florence(@ryanflorence) 's Twitter Profile Photo

I think a 25m talk is the right amount of time

20m feels like you can get to the twist but not the resolution, so it's all rushed

30m drags on

25 is just right

account_circle