Skip to content

Experiencing long lambda cold start delays of 2 - 3 seconds on Vercel #7961

Answered by leerob
styxlab asked this question in Help
Discussion options

You must be logged in to vote

I wrote up ways to debug and detect your root issue with Serverless Function performance decreases.

Edit: Since this has been posted, Prisma has done significant work to improve cold starts (commonly mentioned here as being used in Vercel Functions). Ensure you are on both the latest versions of Prisma and Next.js. Next.js 14 also had cold start improvements, including up to 80% small functions in some instances.

Replies: 39 comments 35 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@ekeric13
Comment options

@noahhai
Comment options

@ricsands2801
Comment options

@ekeric13
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@joshsny
Comment options

@leerob
Comment options

@juniorforlife
Comment options

Answer selected by leerob
Comment options

You must be logged in to vote
2 replies
@leerob
Comment options

@jonbnewman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
14 replies
@cramforce
Comment options

@marcgreenstock
Comment options

@TimNZ
Comment options

@TimNZ
Comment options

@denvudd
Comment options

Comment options

You must be logged in to vote
3 replies
@amyegan
Comment options

@stevenkeith85
Comment options

@stevenkeith85
Comment options

Comment options

You must be logged in to vote
5 replies
@stevenkeith85
Comment options

@noahhai
Comment options

@stevenkeith85
Comment options

@stevenkeith85
Comment options

@stevenkeith85
Comment options

Comment options

You must be logged in to vote
3 replies
@styxlab
Comment options

@juniorforlife
Comment options

@styxlab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
Converted from issue

This discussion was converted from issue #6292 on June 14, 2022 00:42.