【问题标题】:Android backend: Google App Engine vs Compute engineAndroid 后端:Google App Engine 与 Compute 引擎
【发布时间】:2014-10-17 10:13:34
【问题描述】:

我即将开始开发 Android 应用。后端将托管在 Google Cloud Platform 上,但我对使用 GAE 并可能迁移到 Compute Engine 或直接转到 Compute Engine 有疑问。

该应用将在许多国家/地区分发,并且可能从一开始就拥有大量流量(我们已经启动了测试并且效果非常好)。

它不会有很大的内容组件,Android-Backend 的交互将基于 REST API。

我的主要问题是:

  • GAE 使用 Bigtable:如果我们决定稍后使用 Compute Engine,如何迁移数据?
  • 端点:可以在 Google Compute Engine 中使用吗?

毕竟,决定要么现在节省时间(GAE 更容易开始),要么避免以后迁移。

【问题讨论】:

  • GAE 是高度可扩展的,我认为你不需要 GCE 来获得一个宁静的 API。

标签: android google-app-engine google-cloud-endpoints google-compute-engine bigtable


【解决方案1】:

App Engine 的数据存储区适用于 read and write via a public APIHere's a session (including video) from last year's Google I/O 展示了如何让 App Engine 和 Compute Engine 共享一个公共数据存储。这意味着您可以通过 App Engine 提供大部分或全部 API,然后在某些部分(视频处理、地理位置、Hadoop 处理等)不适合 App Engine 模型时使用 Compute Engine .

目前,Cloud Endpoints 似乎是 specifically targeted at App Engine,但您始终可以在 Compute Engine 服务器中实现相同的 HTTPS/JSON API。 (使用您选择的语言——大多数都有不错的 JSON 支持)您必须做一些额外的工作来进行 JSON 编码/解码,但与替换自动缩放和管理所需的其他工作相比,它可能很小App Engine 提供。

【讨论】:

  • 为什么说 GAE 不适合地理定位?
猜你喜欢
  • 1970-01-01
  • 2018-04-28
  • 2018-02-14
  • 2012-08-06
  • 2017-11-17
  • 2013-10-09
  • 1970-01-01
  • 1970-01-01
  • 2015-11-05
相关资源
最近更新 更多