在App Engine中使用rpc/jsonrpc

huangapple go评论87阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2011年10月26日 21:01:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/7902954.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定