Simple threaded web-server based on BaseHTTPServer?

Paul Rubin phr-n2002a at nightsong.com
Thu Jan 31 08:18:22 EST 2002


"Thomas Weholt" <thomas at gatsoft.no> writes:
> > You almost certainly don't want that for the real world.  Having a
> > thread per connection will not scale well at all.
> 
> What are we talking about here; scale in regards of number of concurrent
> connections? What could one expect to in terms of performance?
> I'm not making a web-server for slashdot-like sites in regards of number of
> daily hits. This is webserver for personal sites, with a small to medium
> amount ( 10 to 1000 hits pr. day ??) of traffic. It's more important that
> it's stable, easy to understand and use.

For something that small, BaseHTTPServer should be fine.  A typical
browser will open 5 or so concurrent connections if you have a page
with a bunch of images on it.  If you rarely have more than 2 or 3
browsers pointing to the site, you're probably fine, until the day you
publish something interesting and get Slashdotted ;-).



More information about the Python-list mailing list