The Performance Cost of Server Side Rendered React on Node.js
11–20 of 134 posts
Re: The Performance Cost of Server Side Rendered React on Node.js
#12Re: The Performance Cost of Server Side Rendered React on Node.js
#13well wasn't that clear? Isn't something like a Template Engine quite CPU intensive? Things were node.js performce poorly?
So to answer your question more specifically, no I don't think it is clear. What this is specifically isolating as the performance problem is that using React as a template renderer on the backend is not performant, not because of NodeJS performance, but because React is realistically not really specialized for this.
Re: The Performance Cost of Server Side Rendered React on Node.js
#14Earlier quoted context omitted.
But they're going to have to wait for the initial page load either way, whether it's rendered server side and sent over or they're shown some static content until its rendered client side?
They do, but the load will be spread among clients. The issue here is the load on the server.
Re: The Performance Cost of Server Side Rendered React on Node.js
#15OK 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?
Re: The Performance Cost of Server Side Rendered React on Node.js
#16Earlier quoted context omitted.
Sure, but every user has to do that initial page load. If all initial page loads are slow and expensive, it affects the user experience and costs money. Also, if you start getting requests faster than you can do the initial render, each subsequent user has to wait in line longer than the one before. Your server-side framework won't even show you how long people waited for a TCP connection.
But they're going to have to wait for the initial page load either way, whether it's rendered server side and sent over or they're shown some static content until its rendered client side?
Re: The Performance Cost of Server Side Rendered React on Node.js
#17well wasn't that clear? Isn't something like a Template Engine quite CPU intensive? Things were node.js performce poorly?
They include a comparison with using ES6 Template literals (native JavaScript string interpolation), and saw 10x increase over React. The native string interpolation actually came out just behind serving straight static files. JavaScript CPU performance is actually quite high among interpreted languages. So to answer your question more specifically, no I don't think it is clear. What this is specifically isolating as…
Re: The Performance Cost of Server Side Rendered React on Node.js
#18Earlier quoted context omitted.
They include a comparison with using ES6 Template literals (native JavaScript string interpolation), and saw 10x increase over React. The native string interpolation actually came out just behind serving straight static files. JavaScript CPU performance is actually quite high among interpreted languages. So to answer your question more specifically, no I don't think it is clear. What this is specifically isolating as…
Does anyone actually use vanilla JavaScript string literals for all their backend rendering?
Re: The Performance Cost of Server Side Rendered React on Node.js
#19Earlier quoted context omitted.
They include a comparison with using ES6 Template literals (native JavaScript string interpolation), and saw 10x increase over React. The native string interpolation actually came out just behind serving straight static files. JavaScript CPU performance is actually quite high among interpreted languages. So to answer your question more specifically, no I don't think it is clear. What this is specifically isolating as…
Does anyone actually use vanilla JavaScript string literals for all their backend rendering?
But for any case where you’re basically going in the one direction, i.e. data -> DOM and not changing things once rendered it’s great.