|We don't bite newbies here... much|
Question on design for FastCGIby Anonymous Monk
|on Oct 15, 2012 at 15:12 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
Reference: CGI or CGI::Fast (Thanks again for all the replies :)).
I've just begun to get a little hang of FastCGI via CGI::Fast. I wasn't used to persistence so the starting part was hard for me. I also found that my existing plain CGI code broke when I tried to convert some of it to run on FastCGI, as part of my exploration.
I've a little question at this toying stage and would like to seek your advice.
I'm wondering if it's better to have a FastCGI-aware main (dispatch) script that distributes the real work to modules, or have individual FastCGI-aware scripts that run independently?
Here's an outline of the two approaches:
Which of these is the better approach with respect to FastCGI?
Thanks for reading and I look forward to your replies!