简体   繁体   English

Android后端:Google App Engine与Compute引擎

[英]Android backend: Google App Engine vs Compute engine

I'm about to start the development of an Android app. 我即将开始开发Android应用程序。 The backend will be hosted on Google Cloud Platform, but I have doubts about using GAE and then potentially migrate to Compute Engine or go directly to Compute Engine. 后端将托管在Google Cloud Platform上,但我对使用GAE有疑问,然后可能会迁移到Compute Engine或直接转到Compute Engine。

The app will be distributed in many countries and will likely have much traffic from the beginning (we already launched a test and worked really good). 该应用程序将在许多国家/地区分发,并且可能从一开始就拥有大量流量(我们已经启动了测试并且工作得非常好)。

It won't have a big content component, the interactions Android-Backend will be REST API based. 它没有大内容组件,Android-Backend的交互将基于REST API。

My main questions are: 我的主要问题是:

  • GAE uses Bigtable: how to migrate data in case we decide to go to Compute Engine later? GAE使用Bigtable:如果我们决定稍后进入Compute Engine,如何迁移数据?
  • Endpoints: can thy be used in Google Compute Engine? 终点:您可以在Google Compute Engine中使用吗?

After all, the decision is either saving time now (GAE is easier to start with) or avoid a migration later. 毕竟,决定现在是节省时间(GAE更容易开始)或者以后避免迁移。

App Engine's Datastore is available for read and write via a public API . App Engine的数据存储区可通过公共API进行读写 Here's a session (including video) from last year's Google I/O showing how to have App Engine and Compute Engine share a common data store. 这是去年Google I / O的一个会话(包括视频),展示了如何让App Engine和Compute Engine共享一个公共数据存储。 This means that you can serve most or all of your API via App Engine, and then use Compute Engine if there are certain parts (video processing, geo-location, Hadoop processing, etc) that don't fit well in the App Engine model. 这意味着您可以通过App Engine提供大部分或全部API,如果某些部分(视频处理,地理位置,Hadoop处理等)不适合App Engine模型,则可以使用Compute Engine 。

At the moment, it looks like Cloud Endpoints are specifically targeted at App Engine , but you could always implement the same HTTPS/JSON APIs in a Compute Engine server. 目前,Cloud Endpoints看起来专门针对App Engine ,但您始终可以在Compute Engine服务器中实现相同的HTTPS / JSON API。 (using the language of your choice -- most have decent JSON support) You'd have to do some additional work to do the JSON encoding/decoding, but it's probably small compared with the other work needed to replace the automatic scaling and management that App Engine provides. (使用您选择的语言 - 大多数都具有良好的JSON支持)您必须做一些额外的工作来进行JSON编码/解码,但与替换自动扩展和管理所需的其他工作相比,它可能很小。 App Engine提供。

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

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