使用亚马逊网络服务作为谷歌应用程序引擎后端 [英] Using amazon web services as google app engine back end

查看:137
本文介绍了使用亚马逊网络服务作为谷歌应用程序引擎后端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用谷歌应用程序引擎作为我的移动应用程序后端。我有一些无法在gae环境中执行的任务(主要是使用opencv进行图像识别)。我的意图是保留gae并使用AWS执行这些特定任务。

有没有简单的方法将特定任务从gae传递到AWS?例如。一个任务队列?

解决方案

您可以将任务从GAE推送到AWS,或让AWS实例从GAE中提取任务。 / p>

如果您将任务从GAE推送到AWS,则可以使用 URLFetch 将数据推送到您的AWS实例。

如果您希望让AWS实例从GAE提取任务,则可以让GAE实例将其任务放入GAE Pull Queue ,然后让您的AWS实例使用 任务队列REST API ,以便从队列中租用任务。



无论哪种情况,AWS实例都可以通过简单的POST请求向GAE servlet报告处理结果,或者通过上面提到的 REST API 插入任务,稍后将由GAE实例租用。如果您想控制GAE应用程序处理结果的速度,后者可能很有用。


I am currently using google app engine as my mobile application back end. I have a few tasks that can not be performed in the gae environment (mainly image recognition using opencv). My intention is to retain gae and use AWS to perform these specific tasks.

Is there a simple way to pass specific tasks from gae to AWS? E.g. A task queue?

解决方案

You could either push tasks from GAE towards AWS, or have your AWS instances pull tasks from GAE.

If you push tasks from GAE towards AWS, you could use URLFetch to push your data towards your AWS instances.

If you prefer to have your AWS instances pull tasks from GAE, you could have your GAE instances put their tasks in the GAE Pull Queue, and then have your AWS instances use the Task Queue REST API to lease tasks from the queue.

In either case, the AWS instance could report back the processing result through a simple POST request to your GAE servlets, or through inserting tasks via the abovementioned REST API which would later be leased by your GAE instances. The latter could be useful if you want to control the rate of which your GAE app process the results.

这篇关于使用亚马逊网络服务作为谷歌应用程序引擎后端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆