douyuan1049 2011-07-24 13:43
浏览 60
已采纳

将Python与更快的语言混合以在GAE中进行优化

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?

  • 写回答

2条回答 默认 最新

  • dtds8802 2011-07-24 14:02
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改