简体   繁体   English

Google Cloud DataStore说明

[英]Google Cloud DataStore Clarification

I know appengine datastore and what is cloud datastore, using cloud datastore is always an confusion for me, following are my questions: 我知道appengine数据存储区以及什么是云数据存储区,使用云数据存储区始终是我的困惑,以下是我的问题:

  1. does cloud datastore requires Compute Engine ? 云数据存储区需要Compute Engine吗? (in google docs i saw like enable compute engine) (在Google文档中,我看到了启用计算引擎)
  2. how to access cloud datastore from appengine application (this is very needed) 如何从Appengine应用程序访问云数据存储区 (非常需要)
  3. how to enable multiple application to access this common datastore ? 如何使多个应用程序访问此公用数据存储区?

Note: I know how to activate it, but I didn't get clear answers for my questions above. 注意:我知道如何激活它,但是对于上面的问题我没有明确的答案。

Your questions: 你的问题:

1) No, cloud datastore can also be user by other platforms 1)不,云数据存储也可以被其他平台用户使用

2) App engine has native support to use the (cloud) datastore . 2)App Engine具有使用(cloud) 数据存储区的本机支持。 The cloud datastore is based on the App Engine datastore to make it available for others. 云数据存储区基于App Engine数据存储区,以供其他用户使用。

3) You can share the cloud datastore, but see this issue 3)您可以共享云数据存储,但是会看到此问题

Atlast, i can able to access from cloud datastore from appengine application, following are my answer, 最后,我可以从Appengine应用程序访问云数据存储,以下是我的回答,

Ans For Ques 1: 问题解答1:

Cloud Datstore doesn't require compute engine instance. Cloud Datstore不需要计算引擎实例。

Ans for Ques 2: 问答2:

To access cloud datastore, you need either service account credentials or u must have access token for authenticated user with Scopes set to Datastore, and user email. 要访问云数据存储,您需要服务帐户凭据,或者您必须具有Scopes设置为Datastore的已认证用户的访问令牌和用户电子邮件。

Use Google api Client library,or simply use ProtoBuf library provided in documentation. 使用Google api客户端库,或仅使用文档中提供的ProtoBuf库。

Ans for Ques 3: 问题三:

simply use create credentials from application u want to access and use it in other applications 只需使用您要访问的应用程序中创建的凭据,并在其他应用程序中使用它

https://developers.google.com/datastore/docs/getstarted/overview https://developers.google.com/datastore/docs/getstarted/overview

Thanks! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM