Skip to main content
Web DevRendering & FrontendDiagramAdvanced

Streaming SSR

KO: 스트리밍 SSR·EN: Streaming SSR·JA: ストリーミングSSR·Streaming Server-Side Rendering

An SSR technique that flushes the HTML shell and ready UI chunks progressively over an HTTP stream instead of blocking on the slowest data query

Table of Contents

Structure Diagram

Blocking SSR vs Streaming SSR (Progressive Chunks)
Traditional Blocking SSR2 steps
Streaming SSR3 steps
STEP 1Wait for Slowest Query(68ms)
Quick Answer

What is Streaming SSR?

An SSR technique that flushes the HTML shell and ready UI chunks progressively over an HTTP stream instead of blocking on the slowest data query. It is a core concept in Rendering & Frontend within Web Dev.

Core Principles

Traditional SSR suffers from an all-or-nothing bottleneck: the server cannot send the first byte of HTML until the slowest database or API call finishes. If a recommendations widget takes 1.5 seconds, the entire page stays blank for 1.5 seconds.

Streaming SSR uses chunked HTTP responses to flush the page shell and fast content immediately, leaving lightweight placeholders for <Suspense> boundaries. As slower server queries resolve, the server streams additional HTML chunks and tiny inline scripts that slot them into place progressively.

Practical Takeaways

  • Place <Suspense> boundaries intentionally: Too few boundaries keep the page blocked; too many create jarring layout pop-ins. Separate critical above-the-fold content from slower secondary panels (reviews, analytics, recommendations).
  • Disable proxy response buffering: Misconfigured Nginx proxies or legacy compression middleware can buffer the entire stream and erase all TTFB gains.
  • Keep critical SEO metadata in the initial shell: Ensure titles, canonical tags, and primary content resolve quickly so crawlers and social unfurlers read them reliably.

Notable Examples

  • Next.js App Router (loading.tsx + <Suspense>): Streams navigation shells immediately while parallel server queries resolve independently.
  • React renderToPipeableStream & Remix streaming: Cuts TTFB and improves perceived speed on data-heavy e-commerce and SaaS pages.