scaling problems

David Stanek dstanek at dstanek.com
Tue May 20 16:16:31 EDT 2008


On Tue, May 20, 2008 at 12:03 AM, James A. Donald <jamesd at echeque.com> wrote:
> On Mon, 19 May 2008 21:04:28 -0400, "David Stanek"
> <dstanek at dstanek.com> wrote:
>> What is the difference if you have a process with 10 threads or 10
>> separate processes running in parallel? Apache is a good example of a
>> server that may be configured to use multiple processes to handle
>> requests. And from what I hear is scales just fine.
>>
>> I think you are looking at the problem wrong. The fundamentals are the
>> same between threads and processes.
>
> I am not planning to write a web server framework, but to use one.
> Doubtless a python framework could be written to have satisfactory
> scaling properties, but what are the scaling properties of the ones
> that have been written?
>

Both Django and TurborGears work well for me. When you step back and
think about it all of the popular web frameworks would do just fine.
The ones that don't do multiprocessing out of the box would be trivial
to load balance behind Apache or a real load balancer. Again the
problem here is the number of connections to the database, once you
get big enough to worry about it.

-- 
David
http://www.traceback.org



More information about the Python-list mailing list