From: Brian Candler Date: 2003-03-08T00:09:38+09:00 Subject: Re: DRB and threads On Fri, Mar 07, 2003 at 01:12:03PM +0000, Brian Candler wrote: > I'd actually like to run as multiple processes, for two specific reasons: > > (1) being able to avoid any blocking issues with DBI drivers. There will > be some long-duration queries which take place; I don't want all > other clients to block while this happens! > (2) making use of multiple CPUs > > I quite like the Apache/FastCGI approach because the code for allocating > instances of the backend is already written and hopefully reasonably > debugged; it can have a fixed or variable number of instances. Or, I haven't tried mod_ruby, but I guess the same would apply. Each Apache worker process will have one instance of the application? And I don't have to worry about one object receiving multiple invocations from threads? Regards, Brian.