Preventing the stampede: Request collapsing in the Vercel CDN
When you deploy a Next.js app with (ISR), pages get regenerated on-demand after their cache expires. ISR lets you get the performance benefits of static generation while keeping your content fresh.Incremental Static Regeneration But there's a problem. When many users request the same ISR route at once and the cache is expired, each request can trigger its own function invocation. This is called a "cache stampede." It wastes compute, overloads your backend, and can cause downtime. The Vercel CDN
