Caching Smarter with Next.js - ISG + SWR + Server Actions
Автор: Matthew Sweeney
Загружено: 2025-05-06
Просмотров: 58
Описание:
In this video, I walk through a hands-on demo application built with Next.js 15, designed to showcase caching strategies across both server and client components.
The app simulates a social media feed backed by a containerized PostgreSQL database, using features like:
🧱 Incremental Static Regeneration (ISR) with Next.js’s extended fetch() API
🔁 Cursor-based pagination using server-cached timestamps
⚡ Client-side caching with SWR and useSWRInfinite
🔄 Server Actions to revalidate and stream updated content
You'll see how static content is pre-rendered, cached, and revalidated to improve performance and minimize backend load. We also explore how server-side timestamps act as cache keys for paginated data, and how client-side revalidation keeps the UI up-to-date without heavy API usage.
If you’re looking to scale dynamic apps efficiently while delivering a smooth user experience, this architecture demonstrates the power of Next.js 15 in production-like environments.
🔗 GitHub Repository:
https://github.com/drmatt13/next-post-cach...
🔗 My Website:
https://matts-projects.vercel.app/projects
💬 Drop any questions or suggestions in the comments.
👍 Like & subscribe if you found it helpful!
#Nextjs15 #SWR #ServerActions #IncrementalStaticRegeneration #ISG #FullStackDeveloper #WebPerformance #Caching #Prisma #PostgreSQL #Docker #Vercel #JavaScript #TypeScript #FrontendDev #React
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: