对Google App Engine和Google Cloud Endpoints感到困惑

时间:2023-01-24 00:21:05

I am building my mobile apps (Android and iOS). I am not sure if I understand this correctly, but it seems Cloud Endpoints allow you to develop and deploy your own APIs, while App Engine assists you in building a server application? It seems App Engine also allows you to build a web application backend that exposes REST service APIs? So it can do whatever Cloud Endpoints can do? If I use Cloud Endpoints, can my APIs interact with some kind of DB? Is there anything I can do in App Engine but cannot do in Cloud Endpoints in the context of building a REST backend for mobile apps?

我正在构建我的移动应用程序(Android和iOS)。我不确定我是否理解正确,但似乎Cloud Endpoints允许您开发和部署自己的API,而App Engine可以帮助您构建服务器应用程序?似乎App Engine还允许您构建一个公开REST服务API的Web应用程序后端?那么它可以做任何Cloud Endpoints可以做的事情吗?如果我使用Cloud Endpoints,我的API可以与某种数据库交互吗?我是否可以在App Engine中执行任何操作,但在为移动应用程序构建REST后端的上下文中无法在云端点中执行此操作?

I understand this question is messy.. but Google does seems to have confusing documentations there. Thanks!

我知道这个问题很混乱......但谷歌似乎确实有令人困惑的文件。谢谢!

2 个解决方案

#1


2  

App Engine is just a compute platform on which Cloud Endpoints enabled apps can run. Cloud Endpoints provides frameworks which make writing a RESTful API easier (Java, Python), while also providing features to help you manage your APIs and access them from generated client libraries. You can use Cloud Endpoints in conjunction with a database of your choosing. The Cloud Endpoints frameworks previously linked essentially make it easy to map HTTP paths to methods, which do whatever you want.

App Engine只是一个可以运行支持Cloud Endpoints的应用程序的计算平台。 Cloud Endpoints提供的框架使得编写RESTful API变得更加容易(Java,Python),同时还提供了一些功能来帮助您管理API并从生成的客户端库访问它们。您可以将Cloud Endpoints与您选择的数据库结合使用。之前链接的Cloud Endpoints框架基本上可以轻松地将HTTP路径映射到方法,这些方法可以执行任何操作。

#2


1  

Cloud Endpoints is basically just a framework to make REST APIs on GAE. This is the part you are looking for, "...developers can use services and features available in App Engine standard environment, such as Datastore, Google Cloud Storage, Mail, Url Fetch, Task Queues, and so forth."

Cloud Endpoints基本上只是在GAE上创建REST API的框架。这是您正在寻找的部分,“......开发人员可以使用App Engine标准环境中提供的服务和功能,例如数据存储,Google云端存储,邮件,Url Fetch,任务队列等等。”

So to answer your question, just use Cloud Endpoints if you making an API for your Android app, it's much easier.

因此,要回答您的问题,如果您为Android应用程序制作API,只需使用Cloud Endpoints,这样会更容易。

#1


2  

App Engine is just a compute platform on which Cloud Endpoints enabled apps can run. Cloud Endpoints provides frameworks which make writing a RESTful API easier (Java, Python), while also providing features to help you manage your APIs and access them from generated client libraries. You can use Cloud Endpoints in conjunction with a database of your choosing. The Cloud Endpoints frameworks previously linked essentially make it easy to map HTTP paths to methods, which do whatever you want.

App Engine只是一个可以运行支持Cloud Endpoints的应用程序的计算平台。 Cloud Endpoints提供的框架使得编写RESTful API变得更加容易(Java,Python),同时还提供了一些功能来帮助您管理API并从生成的客户端库访问它们。您可以将Cloud Endpoints与您选择的数据库结合使用。之前链接的Cloud Endpoints框架基本上可以轻松地将HTTP路径映射到方法,这些方法可以执行任何操作。

#2


1  

Cloud Endpoints is basically just a framework to make REST APIs on GAE. This is the part you are looking for, "...developers can use services and features available in App Engine standard environment, such as Datastore, Google Cloud Storage, Mail, Url Fetch, Task Queues, and so forth."

Cloud Endpoints基本上只是在GAE上创建REST API的框架。这是您正在寻找的部分,“......开发人员可以使用App Engine标准环境中提供的服务和功能,例如数据存储,Google云端存储,邮件,Url Fetch,任务队列等等。”

So to answer your question, just use Cloud Endpoints if you making an API for your Android app, it's much easier.

因此,要回答您的问题,如果您为Android应用程序制作API,只需使用Cloud Endpoints,这样会更容易。