TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

React Server Components made our site a lot faster

40 pointsby pancomplexover 1 year ago

11 comments

pancomplexover 1 year ago
Hey HN! I wanted to share an experiment I ran that tests the performance of RSC vs traditional client-side React on one of our product websites (productonboarding.com). I know RSC is a bit of a controversial topic since server-side rendering used to be an ancient paradigm with the shift to modern JS frameworks. As such, I went into the experiment with a healthy dose of skepticism.<p>To test this out, I conducted an experiment where I built an RSC version and a traditional client-side React version of the same website and measured performance. We were able to improve our bundle size and speed by 62% and 63%, respectively. You can find the whole writeup here. <a href="https:&#x2F;&#x2F;frigade.com&#x2F;blog&#x2F;bundle-size-reduction-with-rsc-and-frigade">https:&#x2F;&#x2F;frigade.com&#x2F;blog&#x2F;bundle-size-reduction-with-rsc-and-...</a><p>I actually enjoyed building with RSC more than I expected to, and it made for a better user experience since it rendered almost 3x faster than the client version.<p>Would love to hear any feedback and thoughts on our experiment. Have you started to use React Server Components yet, or no? Have you seen similar results?
评论 #37603561 未加载
评论 #37604042 未加载
评论 #37604852 未加载
willio58over 1 year ago
Wow there&#x27;s a lot of negative comments here on such a simple post along the lines of &quot;Hey we adopted this new version of this library and it boosted our site performance x%&quot;.<p>I think the move React is making to embrace the server side is a great thing. It shows we pushed really hard in one direction, made great progress in building a simple and easy-to-grok front end JS library in doing so, but in the end found that the server _is_ the correct place for the majority of the processing to happen in most cases. The great thing with React Server Components is you don&#x27;t have to change much about how you write react code, you can just define which specific components you need to render on the client side and boom, huge performance jump. Why is that a bad thing?
评论 #37607433 未加载
afavourover 1 year ago
React Server Components drive me kind of crazy.<p>&quot;We made a UI framework that slows down web sites unnecessarily... but don&#x27;t worry! We&#x27;ve now made a massive addition to the framework to mitigate the problem of our own creation! Isn&#x27;t it wonderful?&quot;<p>Feels somehow akin to standing in a hole and being given a shovel to dig your way out.
评论 #37604147 未加载
moribvndvsover 1 year ago
That’s great. What if I don’t want to write a whole new NodeJS backend just to support SSR, when the existing backend with all our APIs that we already wrote is a Spring Boot service?<p>I’ve looked at Nashorn and then Graal to do this, but couldn’t find widely supported resources that work well and snap right in. Anyone in the same boat that has had success?
评论 #37603832 未加载
评论 #37603775 未加载
评论 #37607473 未加载
onemoresoopover 1 year ago
That sounds a lot like moving in circles:)
tunesmithover 1 year ago
Our site is dealing with a dynamic where our Core Web Vitals are already green, and thus our priority-setting folks don&#x27;t see it as a priority to improve the score any further.<p>I want to be able to tell them &quot;Hey, Green at 600ms will still give us an SEO boost over Green at 800ms, so we should do this,&quot; but I am having a hard time establishing whether that is actually true. Does anyone know for sure?
评论 #37603157 未加载
评论 #37602763 未加载
hoofheartedover 1 year ago
This space is evolving so fast, and I love it!<p>I feel like I am in the right place at the right time to be just so happening to be working on a better and more modern Wordpress :)<p>If client-side&#x2F;server-side rendering with static and incremental loading, combined with dynamic markdown loading is your type of thing; please checkout my project and give me a star to follow.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;elegantframework&#x2F;elegant-cli">https:&#x2F;&#x2F;github.com&#x2F;elegantframework&#x2F;elegant-cli</a>
random_krisover 1 year ago
I wonder how much overhead does the rendering or react on server add ?<p>If I have an API sever and then instead of calling those apis from client, I make all db calls on the server and then render the html. How much of processing that was done was spent on rendering html.<p>Also I wonder how react server components and serverside rendering go with localfirst software?<p>I love localfirst web apps, they seem kinda incompatible with serverside apps
评论 #37602879 未加载
评论 #37603750 未加载
Supply5411over 1 year ago
I must be getting older, because &quot;everything old is new again&quot; keeps coming to mind.<p>Only advice would be: don&#x27;t follow these fads unless you a) are doing it to learn or b) can quantify tangible business value in the change. The worst reason to do it is because everyone else seems to be doing it*<p>*Unless literally everyone is doing it and the &quot;old&quot; thing becomes unsupported.
评论 #37607133 未加载
评论 #37606934 未加载
nwienertover 1 year ago
Unbelievable, deceptive levels of clickbait at play - they moved from a client app to a server app, so of course the initial render is faster.<p>This has nothing to do with RSC, and @dang &#x2F;moderators should probably change the headline.<p>&quot;Moving from a client-side app to a server app (using React Server Components) made our site faster&quot; is very unsurprising, not very interesting (what would be interesting is comparison from another server rendering technique), and wouldn&#x27;t have made the HN homepage likely, but they&#x27;ve already cheesed their way here.
评论 #37607324 未加载
评论 #37607186 未加载
评论 #37604122 未加载
评论 #37606936 未加载
flylikeabananaover 1 year ago
The contrast between text and background is way too low. I have &quot;good&quot; eyesight and strained to read the blog post
评论 #37602973 未加载
评论 #37602652 未加载