Next.js enables developers to build full stack applications with the Server Side Rendering capability. Vercel and Netlify help them to write the backend API with serverless functions. So the next question is what is the ideal database for Next.js apps. In this post, I will review the databases which are popular among the Next.js community. I will comment on how they fit the serverless model. Two things to check:
- Serverless pricing: Is the price pay-per-use? When the database is not in use, do you still have to pay?
- Serverless connections: Is there support for HTTP based connections? So there should not be any connection problems which are common with serverless functions.