470,636 Members | 1,597 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

xmlrpclib

G'day everyone

Just wanted to know if anyone knows if xmlrpclib is scalable i.e can handle
many / asynchronous calls.

Any help or advice is appreciated

Cheers
Graeme
Jul 18 '05 #1
4 2560
Graeme Matthew wrote:
Just wanted to know if anyone knows if xmlrpclib is scalable i.e can
handle many / asynchronous calls.


You should specify what goal it is you are trying to achieve. For example
it isn't clear if you are talking about the server end or the client
end.

Additionally you haven't said how far apart the client and server are.
(Same machine? Same LAN? Same continent?)

xmlrpc is not asynchronous. It is a request/response model. Each request
gets exactly one response. There is no method for sending data outside
of that. For example the server end can't send random event messages
without the client end polling for them.

And what do you mean by handle? Is that a speed question, a reliability
question, a size of data structures question?

Lastly the current Python xmlrpc implementation, both client and
server end makes one network connection per request/response pair
and then closes it.

Roger
Jul 18 '05 #2
I was a big vague, I hope this makes more sense.

I am talking about the server end.

I understand that xml-rpc is a request response mechansim (i.e it runs over
http).

The client and the server will span continents i.e Australia to US, US to
Australia.
What I am trying to establish is if the server is asynchronous i.e
multi-threaded i.e what happens when 2 requests hit the server at once?

i.e Does it handle one request at a time?
i.e Does it start a new thread on each request?
i.e Does it use a threading pool?

I am trying to find other people who have used it successfully as most of my
dev work is in python.

Hope this helps

Cheers

Graeme

"Roger Binns" <ro****@rogerbinns.com> wrote in message
news:2h************@home.rogerbinns.com...
Graeme Matthew wrote:
Just wanted to know if anyone knows if xmlrpclib is scalable i.e can
handle many / asynchronous calls.


You should specify what goal it is you are trying to achieve. For example
it isn't clear if you are talking about the server end or the client
end.

Additionally you haven't said how far apart the client and server are.
(Same machine? Same LAN? Same continent?)

xmlrpc is not asynchronous. It is a request/response model. Each request
gets exactly one response. There is no method for sending data outside
of that. For example the server end can't send random event messages
without the client end polling for them.

And what do you mean by handle? Is that a speed question, a reliability
question, a size of data structures question?

Lastly the current Python xmlrpc implementation, both client and
server end makes one network connection per request/response pair
and then closes it.

Roger

Jul 18 '05 #3

Graeme> What I am trying to establish is if the server is asynchronous
Graeme> i.e multi-threaded i.e what happens when 2 requests hit the
Graeme> server at once?

You can write a multi-threaded server using xmlrpclib and SocketServer. I
use one behind the Mojam and Musi-Cal websites. Mine happens to start a new
thread for each request, but I suppose you could write one which uses a
thread pool model.

Skip
Jul 18 '05 #4
Graeme Matthew wrote:
What I am trying to establish is if the server is asynchronous i.e
multi-threaded i.e what happens when 2 requests hit the server at
once?
That depends which server you use. The SimpleXMLRPCServer uses
the standard Python SocketServer stuff, so you can do it in
as many different ways as you want.
I am trying to find other people who have used it successfully as
most of my dev work is in python.


I use xml-rpc, but instead of over HTTP, I actually do it over
SSH (using the Paramiko library for the SSH). It works well
for cross country/continent stuff.

In another project I just use the default one request at a time
handler in the Python xmlrpc server end. The client is in PHP
running on the same machine.

Roger
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sashan | last post: by
2 posts views Thread by p2esp | last post: by
1 post views Thread by Gabriel PASTOR | last post: by
reply views Thread by Alan Little | last post: by
3 posts views Thread by Rune Froysa | last post: by
reply views Thread by Willi Langenberger | last post: by
5 posts views Thread by Jonathan Ballet | last post: by
2 posts views Thread by squid | last post: by
reply views Thread by Arno Stienen | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.