问题
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