30/11/2026

Next.js Rendering Modes Compared: SSR, SSG, ISR, and Client-Side Rendering, and When Each One Fits

Knowledge_seci_model

Open the Next.js docs and you'll find four different ways to get a page onto the screen: server-side rendering, static generation, incremental static regeneration, and client-side rendering. Each one has a plausible-sounding use case, and the framework will happily let you mix all four in the same app. That flexibility is useful once you know what you're doing — and a source of slow, expensive, or stale pages when you don't.

Decision flowchart for choosing SSR, SSG, ISR, or CSR for a page

This guide compares the four rendering modes on the dimension that actually matters when you're shipping a real page: what triggers the render, who pays the latency cost, and how fresh the data is allowed to be. By the end, picking a mode for a given page should be a five-second decision instead of a design meeting.

Server-Side Rendering (SSR): Every Request Pays the Full Cost

With SSR, Next.js runs your page's data fetching and rendering on every single request. Nothing is cached between visitors by default. The server fetches, renders the HTML, and sends it down — each time, for each user.

That makes SSR the right default when a page is genuinely personal or time-sensitive: an authenticated dashboard, a shopping cart, a search results page where the query string changes the output. If two different users should never see the same cached HTML, SSR is doing its job correctly.

The cost is that your server (or your serverless function, or your pod) does real work on every request. There's no free lunch — if traffic spikes, the compute spikes with it. On Vercel this is invisible because the scaling is handled for you and billed per invocation. Running it yourself means the request volume maps directly onto CPU usage on whatever is behind your load balancer, which is the first thing teams misjudge when they move a high-traffic SSR page off of a managed platform.

Static Site Generation (SSG): Build Once, Serve Forever

SSG moves all of that work to build time. The page is rendered once, during next build, and the resulting HTML is served to every visitor from then on — from a CDN edge, ideally, with no server computation per request at all.

This is the right mode for content that doesn't change per-visitor and doesn't change often: marketing pages, documentation, a blog post once it's published. The tradeoff is explicit: the page is only as fresh as your last build. Update the content in your CMS and nothing changes on the live site until you rebuild and redeploy.

For sites with a handful of pages this is a non-issue — rebuild on every content change and move on. It stops working cleanly once you have thousands of product pages or a content team that publishes hourly, because a full rebuild for every change becomes slow and wasteful. That's the gap ISR exists to close.

Incremental Static Regeneration (ISR): Static That Updates Itself

ISR keeps the serving model of SSG — pages are static files, served without per-request computation — but adds a revalidate window. After that window passes, the next request triggers a background regeneration: the visitor still gets the last cached version instantly, and the page quietly refreshes for whoever asks next.

This is the mode most teams actually want for anything that's "mostly static but occasionally changes": product pages with prices that update daily, a blog index that needs to show new posts without a full redeploy, documentation that changes with releases. You get SSG's serving speed with a bound on how stale the content can get.

The catch, and it's a real one once you self-host: ISR's on-demand revalidation and its cache both assume a single machine during local development, but production rarely runs one process. If you're running more than one pod or container behind a load balancer, each instance can hold its own copy of the regenerated page unless you've wired the cache to something shared — which is a different problem from choosing ISR in the first place, but it's the one that actually bites teams moving off Vercel's managed infrastructure.

Client-Side Rendering (CSR): When the Browser Does the Work

CSR is the odd one out: the server sends a near-empty HTML shell, and the browser fetches data and renders the page after JavaScript loads. Next.js doesn't force this on you for whole pages the way a pure SPA framework would, but it's exactly what happens inside any component you mark for client-only rendering, or any page that leans entirely on client-side data fetching.

It's the right call for content that's inherently per-user and doesn't need to be indexed or appear instantly: an interactive dashboard behind a login, a settings panel, a chat widget. It's the wrong call for anything you want a search engine or a social media preview to see on first load, since there's no meaningful HTML until the JavaScript executes.

A Decision Framework: Matching Mode to Page

Reduced to one question per mode:

  • Does the HTML depend on who's asking, right now? → SSR.
  • Does the content change, but rarely, and a short delay after publishing is fine? → SSG, rebuilt on deploy.
  • Does the content change on a schedule you don't control, and needs to stay fast? → ISR.
  • Is this behind a login, inherently interactive, and doesn't need to be crawled? → CSR.

Most real apps use at least two of these across different routes. A SaaS product might render its marketing site with SSG, its pricing page with ISR so promotions update without a redeploy, its authenticated dashboard with SSR for the shell and CSR for the live data inside it. There's no award for using only one mode — the goal is matching each route to its actual freshness and personalization requirements.

What Changes When You Self-Host

All four modes work the same way in terms of code — generateStaticParams, revalidate, and the fetch cache options behave identically whether you deploy to Vercel or somewhere else. What changes is the infrastructure underneath them. SSR needs a server process that scales with request volume instead of a managed function. ISR needs a shared, persistent cache if you're running more than one instance, because each container shouldn't be independently deciding when to regenerate the same page. None of that is exotic — it's standard web infrastructure — but it isn't automatic the way it is on a platform built around Next.js specifically.

This is usually the point where teams start evaluating Kubo: standard Kubernetes with the ingress, scaling, and cluster plumbing already wired, so an SSR or ISR workload behaves the same way in production as it did in development, without building that infrastructure from scratch.

Comparison of a single server instance versus multiple instances sharing one cache

Once a rendering-heavy app is running across more than one node, the next problem is usually visibility: which route is slow, which revalidation is taking too long, which request is stuck between the cache and the data fetch. For ISR and server component workloads specifically, it helps to be able to follow one request end to end — tracing requests across ISR revalidations and server components tells you whether a slow page load is the render, the data fetch, or the network in between, instead of guessing.

Choosing the Right Mode Is the Easy Part

The rendering mode decision in this guide takes five minutes once you know the four questions to ask. The harder part, for teams moving off a platform that handled scaling and caching invisibly, is making the infrastructure underneath each mode behave the way the framework assumes it will — including knowing what's actually happening across every pod once traffic is live. If you're at that stage, monitoring your rendering pipeline in production is the next practical thing to get right.