Get startedGet started for free

Firestore

1. Firestore

If you're looking for a highly-scalable, NoSQL database for your applications, consider using Firestore. Firestore is a fast, fully managed, serverless, cloud-native, NoSQL, document database that simplifies storing, syncing and querying data for your mobile, web, and IoT apps at global scale. Its client libraries provide live synchronization and offline support, and it's security features and integrations with Firebase and Google Cloud accelerate building truly serverless apps. Firestore also supports ACID transactions, so if any of the operations in the transaction fail and cannot be retried, the whole transaction will fail. Also, with automatic multi-region replication and strong consistency, your data is safe and available even when disasters strike. Firestore even allows you to run sophisticated queries against your NoSQL data without any degradation in performance. This gives you more flexibility in the way you structure your data. Firestore is actually the next generation of Datastore. Firestore can operate in Datastore mode, making it backwards-compatible with Datastore. By creating a Firestore database in Datastore mode, you can access Firestore's improved storage layer while keeping Datastore system behavior. This removes the following Datastore limitations: Queries are no longer eventually consistent; instead, they are all strongly consistent. Transactions are no longer limited to 25 entity groups. And writes to an entity group are no longer limited to 1 per second. Firestore in Native mode introduces new features such as: A new, strongly consistent storage layer. A collection and document data model. Real-time updates. And mobile and web client libraries. Firestore is backward-compatible with Datastore, but the new data model, real-time updates, and mobile and web client library features are not. To access all of the new Firestore features, you must use Firestore in Native mode. A general guideline is to use Firestore in Datastore mode for new server projects, and Native mode for new mobile and web apps. As the next generation of Datastore, Firestore is compatible with all Datastore APIs and client libraries. For more information, refer to the documentation. To summarize, let's explore this decision tree to help you determine whether Firestore is the right storage service for your data. If your schema might change and you need an adaptable database, you need to scale to zero, or you want low maintenance overhead scaling up to terabytes, consider using Firestore. Also, if you don't require transactional consistency, you might want to consider Bigtable, depending on the cost or size. Bigtable is covered next.

2. Let's practice!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.