Course contentsShow
← Web Development
Lesson 1793 of 2,98233. Static Site Generation and JamstackFree lesson

Choosing Between Full SSG and Hybrid Approaches

Deciding when to generate all pages at build time versus using incremental or on-demand generation strategies.

Choosing Between Full SSG and Hybrid Approaches

What you'll learn: You'll learn when to generate all your pages at build time versus mixing static generation with incremental or on-demand strategies.

The Core Decision

After mastering static site generation, you face a practical question: should you generate every page at build time (full SSG), or mix approaches (hybrid)? This decision impacts your build times, content freshness, and infrastructure complexity.

Full SSG means generating all possible pages during the build process. Think of it like printing an entire phone book before anyone opens it—every entry exists upfront.

Hybrid approaches combine static generation with fallback pages, on-demand generation, or client-side hydration. It's like printing only the most popular phone book pages, then printing others when requested.

When to Choose Full SSG

Use full SSG when:

  • Your site has a manageable number of pages (hundreds to low thousands)
  • Content changes are infrequent and can trigger new builds
  • Build times are acceptable for your deployment workflow
  • You need maximum performance and simplicity
  • All data is available at build time

Examples: Marketing sites, documentation, small blogs, portfolio sites.

When Hybrid Makes Sense

Consider hybrid approaches when:

  • You have thousands or millions of possible routes
  • Content updates frequently but doesn't need instant reflection
  • Build times would be prohibitively long with full generation
  • You need a balance between static performance and dynamic content
  • Only some pages get regular traffic

Examples: E-commerce with thousands of products, large blogs, user-generated content platforms.

The fallback strategies you learned earlier enable hybrid approaches—generating popular pages at build time while handling the long tail on-demand.

Key Takeaway: Choose full SSG for smaller, slower-changing sites where build performance is acceptable; opt for hybrid approaches when scale, build times, or content freshness demands more flexibility.