Esc
  • Jump to
  • The board
  • All launchesSort and filter by week or category
  • Open statsEvery number, in public
  • Maker storiesApps that stopped hiding
  • Submit a launch
  • AICategory
  • AnalyticsCategory
  • API & BackendCategory
  • Audio & VoiceCategory
  • AutomationCategory
  • CommunityCategory
↑↓ to move↵ to openPress / anywhere
Sign in

What is Server-Side Rendering (SSR)?

A web rendering technique where the server fetches fresh data and builds the HTML for a page on each incoming request before sending it to the browser.

Updated · Building

Plain definition

Definition of Server-Side Rendering (SSR)

A web rendering technique where the server fetches fresh data and builds the HTML for a page on each incoming request before sending it to the browser.

Formula / syntaxHTTP Request -> Server Fetches Data & Builds HTML -> Browser Renders HTML -> Client Hydrates Interactivity

Worked example

Imagine a made-up uptime status product called StatusMoat where every customer gets a public page at `status.statusmoat.example/acme`. Because an outage banner can change at any minute, pre-building static HTML once a day would show stale uptime during a real incident. At the same time, rendering an empty `<div id="root"></div>` shell on the client would break Slack and X link previews and delay first paint on mobile networks.

Using Server-Side Rendering in Next.js App Router with Server Components, StatusMoat reads the customer's live incident status on the server when a request arrives, sends complete HTML including the current status title, Open Graph tags, and incident timeline, and hydrates only the interactive 'Subscribe to updates' form on the client. To protect its database during a traffic spike, StatusMoat adds short cache headers (`s-maxage=15, stale-while-revalidate=60`) on public status routes while keeping private billing screens uncached.

Why it matters when you launch

MDN notes that SSR generates HTML on the server at request time, contrasting with client-side rendering (where browser JavaScript builds the DOM) and static sites (where HTML is generated earlier at build time). Both approaches can coexist in the same app: static generation fits docs and marketing pages, while SSR handles public pages whose data changes frequently or depends on the incoming request.

For indie launches, SSR solves two practical headaches on dynamic public URLs: search crawlers and social link-preview scrapers receive finished metadata and content immediately without executing heavy client bundles, and visitors see real content faster on slow connections. The trade-off is server compute latency and database load per uncached hit, which you must plan for before a launch-day surge.

Common mistakes

  • Running uncached SSR with three sequential database queries on a public homepage, causing slow Time to First Byte and database exhaustion when launch traffic spikes.
  • Shipping huge client JavaScript bundles alongside SSR so the page looks painted quickly yet freezes for seconds during hydration before buttons respond.
  • Passing unauthenticated user cookies or private fields into cached SSR responses, accidentally leaking one user's data to another visitor.
  • Using SSR on purely static marketing or glossary pages that rarely change, paying per-request compute overhead when static generation with revalidation is faster and cheaper.

Tools and guides that use it

Official sources

Pritam Ghosh runs Hauntboard and maintains this glossary.

Published · Updated

Building something real? Launch it in public.

A person reviews every launch on Hauntboard, and every view and visit it sends your site is published on your launch page. Free to submit.

Launch free →

On the board

All →

Still hiding your app?

Put it on the board. Reviewed by a person, free to launch.

Launch free
Submit a launch