This is related to my previous question by the Python web service .
I will use Tornado to exchange information between the server and clients. There will be one server and N clients. Customers will periodically send information (disk usage, processes, etc.) (Every 2 minutes or so). Client-side data will be represented by custom classes / lists. It would be nice to have the same data on the other hand (server).
I have experience with SOAP, and it will probably be fine for this (with enough timeouts on the server), but would rather prefer to use something lighter and more pythonic. The message will be more or less the only client -> server.
Both the server and the client side are written in Python.
What should I look in the Twisted documentation for this?
edit: I am not asking how to serialize data (JSON or pickle or XML, etc.). I would like to know what Twisted options are for transferring data.
With SOAP, I would have these methods:
- sendDiskUsage(DiskUsage class instance) - sendProcesses(ProcessList class instance) - etc..
I would like to know what are the options with Twisted. One of them is XML-RPC, which will be fine, but this is not my favorite ...
edit2: the connection will be "two-way" - the client will read tasks from the server ...
redman
source share