Serverless (Vercel) Prisma Cold Start Optimizations
Prisma's performance in serverless environment is a hot topic currently and I made this topic to collect best practices, optimizations and tips to use prisma's extremely great developer experience with vercel's blazingly fast serverless functions.
As I've previously seen it, cold start are around 2 seconds, while warm requests are handled in ~600ms in a very simple scenario.
I understand, high traffic sites don't face this issue as much as others, since they keep functions warm.
Switching to (or using them parallel) kysely or drizzle is not really an solution imho.
Going back to container based deployment is currently my go-to option if performance matters this much, but having leave Vercel's awesome features behind is a real pain.
I'd be happy to see your solutions & optimizations for this problem. thanks!
As I've previously seen it, cold start are around 2 seconds, while warm requests are handled in ~600ms in a very simple scenario.
I understand, high traffic sites don't face this issue as much as others, since they keep functions warm.
Switching to (or using them parallel) kysely or drizzle is not really an solution imho.
Going back to container based deployment is currently my go-to option if performance matters this much, but having leave Vercel's awesome features behind is a real pain.
I'd be happy to see your solutions & optimizations for this problem. thanks!
