Design Incremental Static Regeneration With Global Tag-Based Revalidation

Last updated: November 29, 2026

Quick Overview

Design the system that serves statically generated pages from a global edge cache, regenerates them in the background after a time-based expiry (stale-while-revalidate), and lets customers purge every page tagged with a cache tag worldwide within seconds via an API call.

Vercel
System Design
Software Engineer
Vercel
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the system that serves statically generated pages from a global edge cache, regenerates them in the background after a time-based expiry (stale-while-revalidate), and lets customers purge every page tagged with a cache tag worldwide within seconds via an API call.

ISR is a signature Vercel and Next.js feature: an e-commerce site can serve product pages at CDN speed and still update them when a price changes in the CMS. Interviewers look for a clear model of cache keys, regeneration coordination across many regions and a fast, reliable purge path.

What the Interviewer Expects
  • Separate the edge cache from a durable regional or global origin store of rendered pages
  • Explain stale-while-revalidate and how to collapse concurrent regenerations into one
  • Design a tag index and a fan-out purge path with a latency target
  • Keep deployments isolated so a new deploy never serves another build's pages
  • Cover failure behavior when regeneration errors (keep serving stale)
Key Topics to Cover
Edge caching
Stale-while-revalidate
Request coalescing
Cache invalidation
Multi-region consistency
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A CMS webhook purges a tag attached to two million pages. What happens to origin load?
  • How do you guarantee a purge is not lost if an edge region is partitioned?
  • How would you support per-user personalization without breaking cacheability?
  • How do you bill and rate limit revalidation for a noisy tenant?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: serve prerendered HTML and data for a path; regenerate after revalidate seconds without blocking users; revalidateTag('product-42') and revalidatePath('/p/42') APIs; pages are sc...

High-Level Design
  • Edge PoPs with local caches keyed by (deployment_id, path, variant).
  • Regional ISR store: a durable blob store of rendered pages plus metadata {generated_at, revalidate, tags, etag}. Ed...

Submit Your Answer
Markdown supported

Related Questions