Does XML-RPC in general allows to call few functio

2019-08-26 16:45发布

问题:

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.