Daily drill
Today's Session
The 20-minute loop, assembled for you: the cards spaced repetition says you're about to forget, plus a coding and a system-design prompt. Finish it daily and keep the streak alive.
Today's cards — grade each by confidence
Today's prompts — try before you reveal
- CodeSenior
Cache a data-fetching Server Component with Cache Components
Next.jscachingCache ComponentsA product page Server Component calls
getProduct(id)(a slow DB read) on every request. Using the Cache Components model (cacheComponents: true), cache the fetched data for up to an hour, tag it so a price update can invalidate it immediately, and make sure the build doesn't fail on a component that also readscookies()for a "recently viewed" strip.next: new - DesignArchitect
Design the rendering strategy for a large e-commerce catalog
architecturerenderingISRA catalog has 500k product pages, a handful of category landing pages, and a cart/checkout flow. Design which pages are static, which are incrementally revalidated, and which must be fully dynamic — and why.
next: new