Potential Issues with PayloadCMS on Vercel using PostgreSQL #11718
Unanswered
nathanbowang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm planning to deploy my PayloadCMS project on Vercel with PostgreSQL as the database. Since Vercel functions run on AWS Lambda behind the scenes, I'm concerned about potential database connection issues.
My Setup
Main Concerns
1. Database Connection Exhaustion
Serverless functions spin up and down based on demand. Each function instance creates a new database connection. During traffic spikes, we might hit PostgreSQL's connection limits.
2. Connection Establishment Latency
Creating a new database connection takes time (100-500ms during cold starts). This could lead to slower response times, especially for admin panel operations.
3. Function Timeout Issues
Vercel functions have execution time limits. Complex database operations might get cut off before completion.
Has anyone deployed PayloadCMS on Vercel with PostgreSQL? Any issues or successful configurations to share?
Thanks in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions