[Twisted-Python] http server performance
Jean-Paul Calderone
exarkun at divmod.com
Tue Mar 4 08:41:43 MST 2008
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
More information about the Twisted-Python
mailing list