| Client-Side Rendering (CSR) | - Dynamic, app-like interactions
- Simple server setup
| - Poor SEO (empty initial HTML)
- Slow initial load
| - Logged-in apps (dashboards, admin panels)
- When SEO isn’t needed
|
| Server-Side Rendering (SSR) | - SEO-friendly (full HTML)
- Fast First Paint
| - High server load
- Slower Time-to-Interactive (TTI)
| - E-commerce, news sites
- Pages requiring real-time data
|
| Static Site Generation (SSG) | - Blazing-fast loads (CDN-cached)
- Zero server runtime cost
| - Stale content (requires rebuilds)
- Not for dynamic data
| - Blogs, documentation
- Marketing sites
|
| Incremental Static Regeneration (ISR) | - Dynamic + static benefits
- No full rebuilds needed
| - Staleness during revalidation
- Cache management complexity
| - E-commerce product pages
- Content with periodic updates
|
| Edge Rendering | - Ultra-low latency (global CDN)
- Reduced origin server load
| - Limited by edge runtime (e.g., no Node.js)
- Higher vendor lock-in
| - Global audiences
- Real-time apps needing low latency
|