Does XML-RPC in general allows to call few functions at once?

萝らか妹 提交于 2019-12-11 16:15:32

问题


Can I ask for few question in one post to XML-RPC server? If yes, how can I do it in python and xmlrpclib?

I'm using XML-RPC server on slow connection, so I would like to call few functions at once, because each call costs me 700ms.


回答1:


http://docs.python.org/library/xmlrpclib.html#multicall-objects




回答2:


Whether or not possible support of multicall makes any difference to you depends on where the 700ms is going.

How did you measure your 700ms?

Run a packet capture of a query and analyse the results. It should be possible to infer roughly round-trip-time, bandwidth constraints, whether it's the application layer of the server or even the name resolution of your client machine.



来源:https://stackoverflow.com/questions/3343082/does-xml-rpc-in-general-allows-to-call-few-functions-at-once

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!