News for hackers. Stuff that matters.
Re:The Benefits of Server Side Rendering Over Client Side Re... by tetha on Sunday March 25, 2018 @01:06PM (#16673126)
Hm, any thought on the performance/throughput consideration?

I'm not experienced with Node.JS, but something hogging the main event loop of an asynchronous server with a long computation sounds horrible. It'll mangle your throughput, and it'll create some really strange latency spikes for unrelated requests, because the slow computation blocked the event thread from delivering the response of another request. Is this not as much of a problem practically, or would you isolate that SSR code from REST code in different application instances?

In a threaded server like java application servers or go applications, that should be a non-issue since requests are handled in mostly independent threads. It might increase the necessary compute resources some, but that's expected when moving work to the server side.

Re:The Benefits of Server Side Rendering Over Client Side Re... by moltar on Sunday March 25, 2018 @06:30PM (#16675022)
Keep in mind that only rendering blocks, not the entire request. Your database calls and other stuff is still non blocking. The actual rendering time is measured in tens of ms in my experience, but then I’m not Walmart. But at the same time I haven’t seen any pages in Walmart that render for half second.

I think you are doing something wrong if your tender time is more than a few ms.

Re:The Benefits of Server Side Rendering Over Client Side Re... by codedokode on Sunday March 25, 2018 @01:37PM (#16673295)
You can run multiple Node.JS processes.