Skip to main content

Choosing a Database

ZenStack is agnostic about where and how you deploy your web app, but hosting on serverless platforms like Vercel is definitely a popular choice.

Serverless architecture has some implications on how you should care about your database hosting. Different from traditional architecture where you have a fixed number of long-running Node.js servers, in a serverless environment, a new Node.js context (or an edge runtime context) can potentially be created for each user request. If traffic volume is high, this can quickly exhaust your database's connection pool if you connect to the database directly without a proxy.

You'll likely be OK if your app has a low number of concurrent users; otherwise, you should consider using a proxy in front of your database server. Here're several solutions you can consider: