10 ms·
Interesting read from Dec 2018 [1] about Next.js: SSR throughput of your server is significantly less than CSR throughput. For react in particular, the through
by midway 8y ago
Interesting read from Dec 2018 [1] about Next.js:
SSR throughput of your server is significantly less than CSR throughput. For react in particular, the throughput impact is extremely large. ReactDOMServer.renderToString is a synchronous CPU bound call, which holds the event loop, which means the server will not be able to process any other request till ReactDOMServer.renderToString completes.
[...]
Using Pre-Rendered CRA addresses both the SEO and performance concerns around using CRA without the complexity that Next.js introduces
[1] https://codeburst.io/next-js-ssr-vs-create-react-app-csr-7452f71599f6 https://codeburst.io/next-js-ssr-vs-create-react-app-csr-745...
- strictnein 8y agoAcronym translations: SSR: Server-side rendering CSR: Client-side rendering CRA: create-react-app