Module 05 of 10

Data Fetching & Caching

Lessons

About This Module

In the App Router, data fetching is just async/await inside a Server Component. There is no getServerSideProps or useEffect to wire up: the component runs on the server, awaits its data, and renders. Components can fetch the data they need where they use it, and identical requests in a single render are deduplicated automatically.

The second half of this module is caching. Next.js caches at several layers: request memoization, the Data Cache, the Full Route Cache and the client-side Router Cache. You will learn how each one works and how to control freshness with the cache and next.revalidate options of fetch, tags, and on-demand revalidation.

Watch the lessons in order, then continue on to Server Actions & Forms.

Lessons

4 videos
01

NextJs 15: Data Fetching in Server Components

A beginner-friendly introduction to fetching data with async/await in Server Components: what they are, why they are used, and how to render the result.

02

Next.js 15 Tutorial: Fetching Data in Server Components

A hands-on walkthrough: define a TypeScript type, fetch users from a mock API in an async component, and see how request memoization avoids duplicate network requests.

03

Next.js App Router Caching: Explained!

Learn how to fetch, cache and revalidate data with the App Router, with a demo, a caching overview and the foundations behind each layer.

04

Understanding Caching in Next.js: Boost Your App's Performance

A deeper look at the four caching mechanisms: request memoization, the Data Cache, the Full Route Cache and the client-side Router Cache.