Menu

Vercel Flags starts 7x faster and no longer extends function duration - Vercel
📰

Vercel Flags starts 7x faster and no longer extends function duration - Vercel

Vercel News·Luis Meyer·18 days ago
#FJIQrjVQ
#vercel#flags#cold#reporting#usage
Reading 0:00
15s threshold

On Vercel, the Vercel Flags SDK now initializes faster on cold starts, and usage reporting no longer keeps functions running after the response.

Copy link to heading Faster cold starts

Two changes speed up SDK initialization on cold starts:

The SDK loads and parses the flags datafile bundled with your deployment as soon as the client is created, so it’s ready before your code evaluates its first flag.

Every function invocation now includes the current datafile revision, so the SDK can check whether the bundled datafile is up to date without a network request.

In internal testing, eliminating the network wait reduced p75 cold-start SDK initialization time from over 70 ms to 10 ms, roughly 7x faster.

After initialization, flag reads are effectively instant.…

Continue reading — create a free account

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