We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我喜欢 CherryPy 使用内置工具/调度程序进行 XMLRPC,据我所知,它可以在 Windows 上运行。
但您确实需要问自己,为什么在 2010 年要使用 RPC,而不是 RESTful 服务。XMLRPC 在允许的变量类型方面非常有限,并且增加了大量的封装开销,并且需要一个可以与 XMLRPC 通信的客户端。
I like CherryPy for XMLRPC using the built-in tool/dispatcher, and it runs on Windows as far as I know.
But you really need to ask yourself why you want to do RPC vs. a RESTful service in 2010. XMLRPC is very limited in the variable types allowed, and adds significant encapsulation overhead, and requires a client that can talk XMLRPC.
我也喜欢 CheeyPy,但也使用 Twisted 来满足此类需求。使用非常简单,Twisted 具有 deferToThread 和 callLater 等延迟函数和辅助函数,允许阻塞代码以非阻塞方式运行。
看看 http://twistedmatrix.com/documents/current/web/ howto/xmlrpc.html 是一个简单的示例。
I also like CheeyPy, but have also used Twisted for such needs. Pretty simple to use and Twisted has defereds and helper functions like deferToThread and callLater to allow for blocking code to act in a non-blocking fashion.
Take a look at http://twistedmatrix.com/documents/current/web/howto/xmlrpc.html for a simple example.
我喜欢使用 电路 来做这样的事情(但并不适合所有人)。源存储库的 Examples/web/ 目录中有一个简单的示例。
I like to use circuits for stuff like this (but it's not for everyone). There's a simple example in the examples/web/ directory in the source repository.