英文:
Using rpc/jsonrpc in App Engine
问题
我对阅读“rpc”和“rpc/jsonrpc”代码和文档感到困惑。在App Engine上,我们不会监听端口来提供RPC请求,我的意思是,我们不会“启动服务器”,那么它应该如何工作?
英文:
I'm confused reading "rpc" and "rpc/jsonrpc" code and docs. We won't listen to a port to serve RPC requests on App Engine, I mean, we won't "start a server", so how it should work?
答案1
得分: 1
在google-appengine-go邮件列表上,Brad Fitzpatrick回答道:
> 基本上,你不能。这只是你会遇到的第一个问题。你会发现的第二个主要问题是,你无法获取*http.Request来获取appengine.Context,以便在你的RPC处理程序中对App Engine进行有用的操作。
英文:
Answered by Brad Fitzpatrick on google-appengine-go mailing list:
> Basically, you can't. That's only the first problem you'll hit. The
> second major problem you'll find is that you can't get at the
> *http.Request to get an appengine.Context to do anything useful with App Engine in your RPC handler.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论