Google Cloud Firestore Now Supports Multiple Databases per Project for Enhanced Resource Management

Google Cloud has officially launched the general availability of multiple database instances within a single Google Cloud project for Firestore. Previously, developers were limited to one database per project, often forcing the creation of multiple projects to isolate environments or separate client data. This update simplifies architecture by allowing developers to manage up to 100 databases under one IAM umbrella while maintaining distinct locations and security rules for each instance. The technical shift enables more granular control over resource allocation and compliance. Each database can be configured with its own specific region and security policies, facilitating easier management of production, staging, and development environments. This change also streamlines infrastructure automation, as teams can use consistent project-level configurations while dynamically provisioning isolated data silos through existing tools like Terraform and the gcloud CLI. From a practical standpoint, this feature is highly beneficial for multi-tenant applications and service-oriented architectures. Developers can now assign dedicated databases to individual customers or services without the overhead of managing separate Google Cloud projects. This ensures strict data isolation and prevents performance interference between different workloads. Users can start utilizing this feature via the Firebase or Cloud console by specifying a unique database ID during resource initialization.
Comparison
| Aspect | Before / Alternative | After / This |
|---|---|---|
| Databases per Project | Maximum of 1 (Default) | Up to 5 by default, expandable to 100 |
| Environment Isolation | Required multiple GCP projects | Isolated instances within a single project |
| Management Overhead | High (Switching project contexts/IAM) | Low (Unified IAM and resource billing) |
Action Checklist
- Update Firestore SDKs to the latest version Required to support database ID parameters in client connections
- Enable the Firestore API in your Google Cloud Project Ensure you have owner or editor permissions
- Create additional databases via gcloud or Console Use unique IDs for each new instance
Source: Google Cloud Blog
This page summarizes the original source. Check the source for full details.
