One Postgres cluster, many apps
Blog post from PlanetScale
Running multiple applications with distinct schemas on a single Postgres database cluster is feasible and beneficial for small-scale projects, using logical databases to maintain separation while sharing resources. The process involves creating logical databases within a cluster and managing access through roles, with the complexity arising from Postgres' permission model. To streamline this setup, infrastructure as code (IaC) tools like Terraform, Pulumi, or others can automate the creation and management of logical databases and roles, facilitating actions such as granting and revoking permissions. This approach allows for efficient scaling and management of side projects and small applications, with the flexibility to incorporate additional infrastructure components. The use of IaC not only simplifies the deployment process but also enables developers to focus on application development and problem-solving rather than administrative overhead.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| MCP | 1 | 6,026 | 689 | 188 | -15% |
| Secrets Management | 1 | 2,063 | 322 | 117 | -4% |