Re: multiple processes problems
Bryan White <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Per Andersson wrote: > I am about to invest time and effort into fastCGI. > > Apache fastCGI in C has the ability to launch multiple processes of a fastCGI > application. Is there not a problem with this? If one has a database in RAM > memory (for speed), does this not mean that one can only have one process > runnning, otherwise there would be a difference in the contents of the RAM > database between different processes. Also if a fastCGI application writes and > reads to files, what happens if multiple processes tries to access the same open > file at once? > > Does this no mean that allowing multiple procecess is problematic. And that it > is best only to allow one process of the application. It will be up to you to manage this RAM database. You could do it with a memory mapped file. The interprocess locking can be tricky depending one what kind of granularity you need. Personnaly when I have done this kind of thing in the past, I have later reverted to a more conventional database. I was guilty of optimizing before determining it was needed. Of couse your application may be different. -- Bryan White ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/