Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
Post image 6
Post image 7
Post image 8
Post image 9
Post image 10
Post image 11
Post image 12
Post image 13
Post image 14
1 / 14
0

Preventing the stampede: Request collapsing in the Vercel CDN

Vercel News·Sachin Raja·4 days ago
#U5wp3mNE
#vercel#request#cache#lock#requests#function
Reading 0:00
15s threshold

When you deploy a Next.js app with Incremental Static Regeneration (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. 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 request collapsing . When multiple requests hit the same uncached path, only one request per region invokes a function. The rest wait and get the cached response. Vercel automatically infers cacheability for each request through framework-defined infrastructure, configuring our globally distributed router. No manual configuration needed.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More