Back to Course
Printable Cheat Sheet
ToolMate Technical Interview Revision Deck • Next.jsUpdated 2026
Next.js App Router Architecture Cheat Sheet
RSC payload streaming, Server Actions, route handlers, revalidation & rendering strategies.
Top Interview Golden Rules & Senior Principles
- React Server Components (RSC) run ONLY on the server: zero client bundle size, direct database/backend access, secrets stay secure.
- Add 'use client' only when needing interactivity (useState, useEffect, event listeners, browser APIs). Push client boundaries down the tree.
- Server Actions must validate input and authenticate permissions; never trust client-provided IDs directly.
- Streaming with Suspense allows fast TTFB by progressively flushing HTML shells and streaming slower database-dependent chunks.
- Caching levels: Request Memoization (per-render deduping) -> Data Cache (fetch cache) -> Full Route Cache -> Router Cache.
Rendering Strategies in App Router
Static Rendering (Default)
export const dynamic = 'error'
Routes rendered at build time or revalidation time. Cached on CDN for maximum speed.
Dynamic Rendering
headers(), cookies(), searchParams
Routes rendered per-request when dynamic functions or no-store headers are detected.
Incremental Static Regeneration (ISR)
revalidatePath() or { next: { revalidate: 60 } }Serves cached static page while regenerating fresh content in the background on cache expiration.
ToolMate Interview Prep • https://interview.toolmate.co.in • Free for personal study & interview preparation