Help manage MongoDB connection pools (Vercel + MongoDB sucks) #4297
Replies: 3 comments
-
I completely agree. This have been a pain in "our ass" too, we have spend so many hours trying to fix this, but seems like there is no solution. |
Beta Was this translation helpful? Give feedback.
-
+1 |
Beta Was this translation helpful? Give feedback.
-
Hi everyone. There is a related discussion here. We encourage you to follow NODE-6179 which is a bug report submitted to MongoDB covering the same connection timeout problem. If you could share any additional context or troubleshooting attempts there it would be very helpful. I agree that our documentation could be improved on this topic. We're hopeful that once the root cause of the timeouts has been identified we can document and share the solution. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Question
Using MongoDB Atlas and Next.js API (Vercel serverless functions) is a pain. Connection pooling doesn't work so connections numbers get super high and requires expensive MongoDB Atlas tiers.
It would be amazing if Vercel could create (or at least guide) to some sort of solution for this problem. For example like with Vercel have done with PostgreSQL connection pool. Or in another way.
I appreciate this article https://vercel.com/guides/connection-pooling-with-serverless-functions but it is not enough.
Beta Was this translation helpful? Give feedback.
All reactions