Sunday 20 October 2019

SSR vs CSR. Template Engine vs API+Frontend separated

Hi guys, i am learning Node.js and i have a question.I want to build a Node.js API (Node+Express+Mongo, with tokens, etc.) and also a React frontend page.The question is, what is better and why?:All in Node with Server Side Rendering (SSR) using a Template Engine (like EJS, Pug..)API with Node.js and website with React (Client Side Rendering CSR) on a Nginx server for sending html+css+js files.I saw that SSR is faster, but the problem is that rendering is a sync process and it means that server will only process about two requests per second (or something like that i read) and if you have a lot if requests at the same time, you have a problem.

Submitted October 20, 2019 at 10:54PM by JaMoLpE88

No comments:

Post a Comment