I'd like to add a database provider to my app. What are my options?
When adding a database to your application, especially one deployed on Vercel, there are several excellent options to consider. Let's explore the best choices and how to implement them.
Vercel has first-party integrations with several database providers that work well with serverless functions 1:
Traditional relational databases were built for long-running compute instances, not the ephemeral nature of serverless functions. When using databases with serverless functions, you need to be aware of connection management 1.
Serverless functions are stateless and asynchronous, which can lead to connection issues:
The easiest way to add a database to your Vercel project is through native integrations 2:
Let me help you add a database integration right now: