I have a such question - what is a right way to fork in PSGI/Plack application ?
On the one hand i know that PSGI app is "backend-agnostic", so it can be runned using different methods - FastCGI,CGI, etc But on the other hand i know that for example in FastCGI application we need to do some manipulation with FCGI::Request object before/after fork.
So what i must to do ?
- Just fork :)
- Do some magic manipulations and fork (What manipulations?)
- Rewrite application architecture => move all heavy operations into external daemon process.