~/talk

RSCs In Production: 1 Year Later

Talkat React Summit 2024 · on Tuesday, 2024-06-18· at 15:38· [react, web-performance]

Upload Thing runs React Server Components with Next.js App Router in production after a year, deployed to Vercel and split between Lambda and an edge runtime to avoid cold starts. Data layer uses Drizzle (Prisma added 1–2s cold starts), RPC uses trpc, analytics with PostHog, and hundreds of SVG patterns are rendered server‑side so they never bloat client bundles. Streaming + Suspense yields three or less round trips, but two runtimes, slow webpack dev servers awaiting TurboPack, hydration bugs, and an SSR JSON dump workaround are real pains; partial pre-rendering is planned.

AI-written summary · about

  1. 0:00Introduction
  2. 1:11Upload Thing deployment
  3. 3:39App Router root layout
  4. 6:29Data fetching with RSCs
  5. 9:40Bundle size benefits
  6. 12:12Suspense and streaming
  7. 15:41Performance compromises
  8. 18:46Partial pre-rendering edge
  9. 19:49Replacing actions with tRPC
  10. 21:33Hydration issues
  11. 23:16Final thoughts
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.