|
|
|
|
|
by aurareturn
482 days ago
|
|
I'm unconvinced. Basic page renders were taking 200-400ms.
I've never seen this. Next.js is very fast for basic pages. If a Google crawler or our Ahrefs SEO monitoring tool hit multiple pages at once, the site would start crashing multiple times per week.
This just seems like code issue and not Next.js. Plenty of sites use Next.js and have billions of views/year. Large pages, especially ones with dynamic content, could spike well beyond 700ms.
This might have something to do with the database/server being far away and nothing to do with Next.js. We built our own server-side rendering system using plain React and Express.
Could explain the above inefficiency. Usually when you build your own server, it sits as close to your DB as possible. We already knew how to build SSR—it’s not hard.
It's actually really hard to do SSR with React at scale and good client side. One thing Next.js (and other modern frameworks) do very well is that the initial load is SSR, but subsequent loads are client-side.Truthfully, they should have picked an SSG generator. It's better than using SSR, and certainly better than using a custom SSR solution. It's a marketing site with little to no database content. |
|