[Web-SIG] multi-threaded or multi-process wsgi apps

Chris Withers chris at simplistix.co.uk
Wed Nov 28 22:54:23 CET 2007


Robert Brewer wrote:
> In a multithreaded environment, I recommend apps read config only at
> process startup, parse the entries and use them to modify live objects,
> and then throw away the config. Then, if you need to make changes to
> settings while live, you just modify the live objects in the same way
> the config parsing step did (and then modify the config file only if
> desired). 

I completely agree with this :-)

> potential change. In a multiprocess environment, you can notify other
> process with any of various forms of IPC or shared state mechanisms.

Can you suggest some good pythonic (sorry! ;-) ) IPC or shared state 
mechanisms?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Web-SIG mailing list