Google Cloud Functions 可以与 Appengine 共享数据存储吗?
Can Google Cloud functions share a datastore with Appengine?
我有一个使用 AppEngine 数据存储的旧 AppEngine Java 应用程序。这是现在(2019 年)Google 的营销重命名者所说的 "Cloud Datastore" 吗?
我可以创建 Google 与同一数据存储交互的 Cloud Functions 吗?这样做需要哪些步骤?
是的,这是同一个数据存储。另外 called/soon-to-be Cloud Firestore in Datastore mode
(所有较旧的应用程序都将在某个时候转换为)。
是的,您可以从任何地方访问它,甚至可以从 Google 云端访问。来自 Cloud Datastore(强调我的):
You can access Cloud Datastore from anywhere using the Cloud
Datastore API. Use the Google Cloud client libraries to store and
retrieve data from Cloud Datastore.
The same Cloud Datastore data is available regardless of if you use the App Engine libraries, the Google Cloud client libraries, or call
the API directly.
从 Cloud Functions 访问数据存储的主要步骤:
- 您不能像您可能在旧应用程序中使用的那样使用特定于 GAE 的客户端库,您必须使用通用 client libraries (or the REST or RPC API 之一)
- 你必须CF's Identity/service account the proper access permissions, see Setting up authentication and Accessing your database from another platform。
我有一个使用 AppEngine 数据存储的旧 AppEngine Java 应用程序。这是现在(2019 年)Google 的营销重命名者所说的 "Cloud Datastore" 吗?
我可以创建 Google 与同一数据存储交互的 Cloud Functions 吗?这样做需要哪些步骤?
是的,这是同一个数据存储。另外 called/soon-to-be Cloud Firestore in Datastore mode
(所有较旧的应用程序都将在某个时候转换为)。
是的,您可以从任何地方访问它,甚至可以从 Google 云端访问。来自 Cloud Datastore(强调我的):
You can access Cloud Datastore from anywhere using the Cloud Datastore API. Use the Google Cloud client libraries to store and retrieve data from Cloud Datastore.
The same Cloud Datastore data is available regardless of if you use the App Engine libraries, the Google Cloud client libraries, or call the API directly.
从 Cloud Functions 访问数据存储的主要步骤:
- 您不能像您可能在旧应用程序中使用的那样使用特定于 GAE 的客户端库,您必须使用通用 client libraries (or the REST or RPC API 之一)
- 你必须CF's Identity/service account the proper access permissions, see Setting up authentication and Accessing your database from another platform。