FSD Frontend System Design

Part III — The Speed · Lesson 5.6

Rendering Patterns

In one lineWhere and when HTML gets built — CSR, SSR, SSG, ISR, streaming — decides your LCP before you write a line.

Where you've seen itAn e-commerce product page: static description, live price, and reviews that appear a moment later. Three patterns, one screen.

  • Time18 min
  • DiagramSix patterns on the same timeline
  • Chapter5 · Performance

Diagram

diagram
diagram
diagram

How it works

  1. SSG/ISR for anything cacheable — the CDN answers in ~30ms and no server runs per view.
  2. SSR when the HTML must differ per user and SEO or LCP matters.
  3. Stream so the shell paints immediately while slow data (reviews, recommendations) arrives in later chunks.
  4. CSR is perfectly correct behind a login where SEO is irrelevant and the app is long-lived.
  5. Mix per route, and per component. The interview answer is almost never one pattern for a whole app.

Trade-offs

PatternLCPFreshnessServer cost
CSRworstlivenone
SSRgoodliveper request
SSGbestbuild-timenone
ISRbestnear-liveoccasional
Streamingbest usefulliveper request
Islandsbestdependslow

Interview angle

"SSR or CSR for an e-commerce site?"

  • Per route: product and category pages need SEO and fast LCP → SSG/ISR at the edge; cart and account are CSR behind login.
  • Price and stock are the genuinely dynamic bits — fetch those client-side or stream them into a static shell.
  • Name hydration cost explicitly: SSR that ships a huge bundle can feel slower than CSR despite a better LCP.

Recap

  • The pattern is chosen per route, by freshness and personalisation.
  • Hydration is the hidden cost — looking ready isn't being ready.
  • Static shell + streamed dynamic parts is the default answer for most content sites.