[Tutor] what are some alternatives to XMLRPC?
Alan Gauld
alan.gauld at blueyonder.co.uk
Thu Sep 18 18:22:35 EDT 2003
> I ran some tests this evening with XMLRPC, and found it to be a
little
> too slow for my needs...
Thats a feature of using a text based protocol for RPC. XML/RPC
as well as SOAP are really designed to make systems easily
accessed from outside via lots of platforms. If you know the
platforms you are using a binary protocol (using raw sockets
or SQL for example) will be faster(*).
If for some reason you can't use SQL in the final product
then consider raw socket strings. If you have to come
through firewalls etc XML over http is probably the best
bet though.
One way to improve performance is to encoide the result as
a large binary block and send that as a single XML field.
That will remove a whole heap of XML parsing, but leave you
with the task of unpicking the binary data (sometimes called
*marshalling*).
HTH,
Alan G.
(*)
XML is typically 10 or more times less efficient at
transmittting data than a proprietary binary format.
More information about the Tutor
mailing list