request waterfall
A chain of requests where each one only starts after the previous one finished, so their waiting times add up.
In more detail
Waterfalls appear when a component awaits one query before starting the next, or when a child only fetches after its parent has rendered. Start independent requests together with Promise.all, or preload them before they are needed.
Related terms
- Promise.all — A JavaScript function that starts waiting on several Promises at once and resolves when all of them have finished.
- preloading pattern — Starting a data request early, before the component that needs it renders, so the result is ready or nearly ready when it is used.
- Suspense — A React component that shows a fallback, such as a spinner or skeleton, while components inside it are waiting for something to load.
Taught in
- Server Components: Async Execution & Constraints — Next.js 15 & Modern App Router Architecture
- Granular Suspense: Resolving Waterfall Bottlenecks — Next.js 15 & Modern App Router Architecture
- Async Data Fetching: Parallel Requests & Preloading — Next.js 15 & Modern App Router Architecture