Persistence In SimpleXMLRPCServer?
jankoM
janko at mind-nest.com
Tue May 13 14:26:28 EDT 2003
John Abel <john.abel at pa.press.net> wrote in message news:<mailman.1052819959.22474.python-list at python.org>...
> I have an XML-RPC server, with an instance that returns details of the
> local filesystem. Is there a way I can have certain data cached (file
> stat data, for example), for use with each request? I was thinking of
> something along the lines of self.server.xxxxx.
>
> Is something like this possible, or will I have to store the data external?
>
> Thanks
>
> John
I am just working something similar right now. How do you mean
persistence.. between XMLRPC requests or between aplication shutdowns?
1.case: I am just starting in python but I think if you implement
xmlrpc functions inside a class they can share class properties betwen
requests.
2.case: Pickle it, or use twisted (www.twistedmatrix.com) which has
persistence betwen app shutdows everywhere.
As I saw it twisted xmlrpc server works faster, than
SimpleXMLRPCServer.. I did my ap first with this one but it was
strangely slow.
http://www.mind-nest.com
More information about the Python-list
mailing list