问题
I find somewhat contradicting information from Google about which data storage solution I should use for my web app. Since I'm not too interested in using Mobile SDKs and like the server frameworks offered from Cloud Datastore, I would choose that option according to this flowchart.
However when I go into my Google Cloud Platform and select the Cloud Datastore option from the menu, I get this message:
It raises a lot of questions and confusion. Does this mean that Cloud Firestore will eventually replace Cloud Datastore? Will the benefits of Cloud Datastore be implemented in Firestore? Should I avoid using Cloud Datastore for my web app?
回答1:
Update
We've now released Datastore mode, a new mode for Cloud Firestore. This question was posted before that when only Native mode was available publicly:
- Native mode: Next generation of Firebase Realtime Database
- Datastore mode: Next generation of Cloud Datastore
Differences are documented in the official document.
Original Answer
This is a mistake in our text which is being fixed. It is meant to read "next generation of Firebase Realtime Database".
Currently, we only support either Cloud Datastore or Cloud Firestore per project (something we hope to fix in the future).
You are seeing this message because you already enrolled in the Cloud Firestore beta for that project via the Firebase Console. Not when you enrolled in the beta, there is a message: "Enabling Cloud Firestore Beta will preclude you from using Cloud Datastore with this project, notably from the associated App Engine app."
回答2:
Yes, Firestore is the 3rd generation of Cloud Datastore and is the upcoming replacement for it, essentially available in 2 modes: Native (firestore) mode and Datastore mode.
- Announcement at Google Cloud Next 2018: https://www.youtube.com/watch?v=jXlYaPS1Mzk
- Documentation regarding the choices: https://cloud.google.com/datastore/docs/firestore-or-datastore
- Video overview: https://www.youtube.com/watch?v=SYG-BgXoJFQ
来源:https://stackoverflow.com/questions/48992325/cloud-firestore-next-generation-of-cloud-datastore