OK from single core $10 VPS you will be able to serve 1,080,000 unique initial loads per hour and depending on your pattern of traffic say 15,000,000 in a day could you remind me what the issue is again?
It's a real issue, my startup's react SSR times are ~5 seconds of blocking the node thread on my $40 droplet. It's about 50% react. Our pages are way more sophisticated than your average page with like a query and a form, though. There are many ways to make faster though, one of which is to simply configure your CDN properly.
The Performance Cost of Server Side Rendered React on Node.js
51–60 of 134 posts
Re: The Performance Cost of Server Side Rendered React on Node.js
#52OK from single core $10 VPS you will be able to serve 1,080,000 unique initial loads per hour and depending on your pattern of traffic say 15,000,000 in a day could you remind me what the issue is again?
Assuming that your actual use case is rendering one small HTML table, yes. It probably isn’t, though.
Re: The Performance Cost of Server Side Rendered React on Node.js
#53Earlier quoted context omitted.
It's a real issue, my startup's react SSR times are ~5 seconds of blocking the node thread on my $40 droplet. It's about 50% react. Our pages are way more sophisticated than your average page with like a query and a form, though. There are many ways to make faster though, one of which is to simply configure your CDN properly.
did you ever consider that you might not be doing something right ?
As I said, our app is sophisticated
Re: The Performance Cost of Server Side Rendered React on Node.js
#54Re: The Performance Cost of Server Side Rendered React on Node.js
#55I'd love to see a side-by-side comparison to Marko.js ( https://markojs.com/ ). It has a lot of react-like features, but was built from the ground up for SSR speed.
Not too sure how accurate or biased they are, though.
Re: The Performance Cost of Server Side Rendered React on Node.js
#56Isn't the whole point of server-side rendered React to render it just once, when building the website, and then serve it as static HTML/JS/CSS assets using a static webserver?
Re: The Performance Cost of Server Side Rendered React on Node.js
#57Earlier quoted context omitted.
There's the lit-html[1] project, which is still fairly new. It uses tagged template literals to render to the DOM, so on the server side it could fall back to vanilla string interpolation. [1]: https://github.com/PolymerLabs/lit-html
And hyperHTML [1] that preceded it and has near identical API. [1] https://github.com/WebReflection/hyperHTML
EDIT: Yeah, looks like it's always worked that way. Maybe I was thinking of another lib.
Re: The Performance Cost of Server Side Rendered React on Node.js
#58Re: The Performance Cost of Server Side Rendered React on Node.js
#59OK from single core $10 VPS you will be able to serve 1,080,000 unique initial loads per hour and depending on your pattern of traffic say 15,000,000 in a day could you remind me what the issue is again?
It's a real issue, my startup's react SSR times are ~5 seconds of blocking the node thread on my $40 droplet. It's about 50% react. Our pages are way more sophisticated than your average page with like a query and a form, though. There are many ways to make faster though, one of which is to simply configure your CDN properly.
I would love an article detailing your experience and measurements.
Re: The Performance Cost of Server Side Rendered React on Node.js
#60Earlier quoted context omitted.
How do you do that with dynamic content?
In my view the user-specific parts and frequently updating data should be rendered on the client side. The pre-rendered HTML should contain the less-frequently changing information that is important for SEO.
The article points out one downside: React's render-to-string faculties are slow.