BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Google Announces Firestore, a Document Database

| by Abel Avram Follow 4 Followers on Oct 04, 2017. Estimated reading time: 1 minute |

Google has announced Cloud Firestore, a document database for mobile, web and server applications.

Last year we reported on Google Firebase, a database for mobile and web development, providing real-time and offline access to data and integration with many Google services. They follow now with a "brand new" offering called Cloud Firestore, a NoSQL database in the cloud for mobile, web and server applications. Its main features are: a flexible data model, complex querying, real-time data updates, support for offline access, scalability across multiple regions, strong consistency, batch operations, support for transactions, and integration with the rest of Google ecosystem, including Cloud Functions. Besides REST and RPC APIs, Firestore comes with SDKs for Android, iOS (Swift and Objective-C), JavaScript (including Node.js), Java, Python and Go.

It seems that with Firestore Google wants to address some shortcomings with Firebase, also called now Realtime Database. The main differences between the two solutions are:

  • Data model. While Realtime keeps data in one JSON file, Firestore introduces the concept of documents organized in collections.
  • Offline. Firestore adds offline support for web applications while Realtime supports only mobile ones.
  • Querying. Due to a better data model, Firestore supports more complex and faster queries.
  • Operations. Firestore can combine multiple operations in atomic batches, and transactions are repeated until completed.
  • Zones. Realtime is limited to one zone in a single region while Firestore can span multiple regions.
  • Scalability. Realtime is limited to 100K connections and 1K writes/sec. More can be achieved by sharding the database. Firestore automatically scales beyond those limits when needed.
  • Security. Firestore has a simpler data access control.

Regarding the data model, Firestore keeps data in documents organized in collections. Each document contains key-value pairs, and can have associated subcollections. Beside the standard types -boolean, integer, float, byte, string, geo point, date and time, null – Firestore supports arrays and maps, the latest being a form of nested objects. The database is schemaless.

AngulaFire has announced support for Firestore with observable streams that can be integrated in Angular applications, including in Animations, Forms, and Routers. Firestore is currently in beta and there are some limits in using it. Also, pricing is different than the one used for Realtime.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT