473,408 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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 2673
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Larry | last post by:
I've had a production system running for a long time that uses xmlrpclib with timeoutsocket, and with my recent upgrade to 2.3 it's no longer able to use xmlrpclib with the xmlrpc servers I...
0
by: sashan | last post by:
Hi I'm having trouble using xmlrpclib. I register a function (or class) with the SimpleXMLRPCServer and initiate the server. I then create a ServerProxy object and connect to the xml-rpc...
2
by: p2esp | last post by:
Hello, I'm using the xmlrpclib module to contact an XMLRPC server that takes a long time to send results back. My client timeouts. The question is whether there is a way to have an xmlrpclib...
1
by: Gabriel PASTOR | last post by:
I'm trying to send object using xmlrpclib, but it seems that classes inheriting from object cannot be marshalled. Here is an example: -------- server.py -------- import xmlrpclib,...
0
by: Alan Little | last post by:
I'm trying to write a generic weblog update notifier using xmlrpclib, starting with technorati. What I want to do is something like this : XML config file that would look like this: <server...
3
by: Rune Froysa | last post by:
Trying something like:: import xmlrpclib svr = xmlrpclib.Server("http://127.0.0.1:8000") svr.test("\x1btest") Failes on the server with:: xml.parsers.expat.ExpatError: not well-formed (invalid...
0
by: Willi Langenberger | last post by:
Hi! We have an application server (Zope) and make heavy use of xml-rpc. One problem arised, when we tried to return a zope.DateTime instance. xmlrpclib (naturally) knows nothing about...
5
by: Jonathan Ballet | last post by:
Hello, I have developped a XMLRPC server, which runs under Gnu/Linux with python2.3. This server receives method calls from Windows client. The server got some parameters which are string,...
2
by: squid | last post by:
First off, I'm a python neophyte, but I'm fairly experienced with Java, C and PHP. I've been trying to use the xmlrpclib to perform remote calls against a service, and it works nicely. However,...
0
by: Arno Stienen | last post by:
Perhaps I should be a bit more specific. When using this code to connect to a remote XML-RPC server (C++, xmlrpc++0.7 library): import xmlrpclib server =...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.