shipfeedAI news, curated daily

02:43:23 CET
21 MAY02:43:23shipfeed
pull to refreshlast sync
Just in — 30 new
§ feed · storyline

Preventing the stampede: Request collapsing in the Vercel CDN

Vercel's CDN gains request collapsing to prevent cache stampedes on ISR routes, allowing only one function invocation per region while concurrent requests wait for the cached response.

Sep 25 · · primary fetch1 sourceupdated Sep 25 ·

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 now prevents this with . When multiple requests hit the same uncached path, only one request per region invokes a function. The rest wait and get the cached response.request collapsing Vercel automatically infers cacheability for each request through framework-defined infrastructure, configuring our globally distributed router. No manual configuration needed. Read more

read full article on vercel.com
§ sources1 publication · timeline below
  1. vercel.comPreventing the stampede: Request collapsing in the Vercel CDNprimary