[Twisted-Python] http server performance

Matthew Glubb matt at madebykite.com
Tue Mar 4 11:07:20 EST 2008

I am not aware of the scope of your project, or on your experience  
with C but if you are looking for high performance based on an  
ascynchronous events you might do well to take a look at the lighttpd  
web server. In the past I have had a lot of success, hacking lighttpd  
modules (such as the proxy module) for my own particular needs. The  
code base is small and easy to comprehend when compared to the  
monolith that is apache.

I'm not saying that twisted won't be able to cater for your needs (it  
caters for most of mine). Just pointing you to possible alternatives...


Matthew Glubb
Technical Partner

email: matthew.glubb at madebykite.com
phone: 44 (0) 7715 754017
skype: mglubb


GPG: 96FF DE0E 0B7B 37F0 7F8D C54C E285 3D8F 5625 9244

On 4 Mar 2008, at 15:41, Jean-Paul Calderone wrote:

> On Tue, 4 Mar 2008 20:11:08 +0530, bharath venkatesh  
> <bharathv6.project at gmail.com> wrote:
>> hi,
>>       my project involves lot of  I/O  over the network.. one part  
>> of my
>> project involves a server(http) which is listening on the port for  
>> many
>> client . this sever fetches an image from the web and  and send it to
>> clients ....  and many clients will request the server  
>> concurrently .. to
>> implement concurrent serving to clients i used threaded http server
>> like this
>> [snip]
>> this didn't solve the problem at all .. same thing is happening  
>> only 2
>> clients is served at a time ..even if no of threads is assigned   
>> to 20 ..
>> i have did lot of searching and reading .. and hoping to find a  
>> solution
>> ..can anyone make it easier for me
>> i have heard of twisted deffered object .. will it solved the  
>> problem ? if
>> not pls suggest me alternative..
> Deferreds won't directly solve your problem, but using Twisted as your
> HTTP server (and client) should.  It is generally the case that  
> Twisted applications continue to perform well under increasing  
> load  - more so
> than thread-per-connection based systems.
> Jean-Paul
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list