在GAE中将python与更快的语言混合进行优化 [英] Mixing python with a faster language for optimization in GAE

查看:119
本文介绍了在GAE中将python与更快的语言混合进行优化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Python和GAE世界的新手,我有一个问题。
对于Python,通常的做法是只在需要时优化代码,修复更紧急的瓶颈。
实现这一目标的方法之一是用C语言重写程序中最关键的部分。使用GAE我们会永远失去这种可能性吗?
由于 Google的Go语言现在(或将会在编译更高效时立即执行)最快GAE中的语言,是否会在同一个应用中混合使用Python和Go?
还有哪些其他方式可以达到类似的效果? 我可以编写Google应用程序的某些部分Java中的引擎代码,Python中的其他部分?介绍如何使用多种语言。

基本上,给定应用程序的每个版本只能使用一种运行时语言。

但是,您可以使用不同语言编写的应用程序的两个不同版本,并且可以通过数据存储区来回传递信息。



另外,您可以使用两种不同语言的两种不同应用程序,然后您可以通过请求来回传递信息。


I'm a newbie in the Python and GAE world and I have a question. With Python the normal approach is to only optimize the code when needed, fixing the more urgent bottlenecks. And one of the ways to achieve that is by rewriting the most critical parts of the program in C.

By using GAE are we losing this possibility forever? Since Google's Go language is now (or it will be as soon as it is compiled more efficiently) the fastest language in GAE, will there be a way to mix Python and Go in the same app? What other ways could be used to achieve a similar result?

解决方案

See Can I write parts of the Google App Engine code in Java, other parts in Python? for how to use multiple languages.

Basically, each version of a given app can only use one runtime language.

But, you can have two different versions of your app, written in different languages, and they can pass information back and forth through the datastore.

Also, you can have two different apps, in two different languages, and you can have then pass information back and forth through requests.

这篇关于在GAE中将python与更快的语言混合进行优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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