[Web-SIG] Thread-management middleware components?

2005-12-15 Thread Jim Fulton
Has anyone written any thread-management middleware components for WSGI? Many web applications need to run application code in separate threads. Often, the number of threads needs to be limited, either by throttling the rate of thread creation, or by dispatching requests to a thread pool. This is

Re: [Web-SIG] Thread-management middleware components?

2005-12-15 Thread Ian Bicking
Jim Fulton wrote: > Has anyone written any thread-management middleware components for WSGI? > Many web applications need to run application code in separate threads. > Often, the number of threads needs to be limited, either by throttling > the rate of thread creation, or by dispatching requests t

Re: [Web-SIG] Thread-management middleware components?

2005-12-15 Thread Jim Fulton
Ian Bicking wrote: > Jim Fulton wrote: > >> Has anyone written any thread-management middleware components for WSGI? >> Many web applications need to run application code in separate threads. >> Often, the number of threads needs to be limited, either by throttling >> the rate of thread creation,

Re: [Web-SIG] Thread-management middleware components?

2005-12-15 Thread Ian Bicking
Jim Fulton wrote: >> Right now all threading and generally concurrency is handled by the >> server. Since it *has* to be handled by the server, > > > Why does it have to be handled by the server? Because most WSGI apps are blocking, so unless you want the server to be non-concurrent it has to

Re: [Web-SIG] Thread-management middleware components?

2005-12-15 Thread Jim Fulton
Ian Bicking wrote: > Jim Fulton wrote: > >>> Right now all threading and generally concurrency is handled by the >>> server. Since it *has* to be handled by the server, >> >> >> >> Why does it have to be handled by the server? > > > Because most WSGI apps are blocking, so unless you want the s