« Previous Next »

Thread: General FastCGI question

Last post 06-05-2009 9:15 PM by sergeia. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 04-02-2009, 3:55 PM

    • tbbatccc
    • Not Ranked
    • Joined on 04-02-2009, 7:46 PM
    • Posts 1

    General FastCGI question

    I currently have a site running on IIS 7.0 (and 6.0 in some places) that uses a PERL script in between the browser and the program that runs in the background.  I am using Activestate perl.

    When a web request is made, a PERL job is spawned, then when my background program runs, it also spawns a job, the background program ends, then the perl job ends with the results sent to the browser.  This is not PHP.

    I want to try an speed up the process and was looking into whether FastCGI would be an answer where I would not spawn a new job for each PERL run .  All the posts/installs I have seen have more to do with PHP..

    My questions, is FastCGI something I can use for this purpose?

     

     

  • 06-05-2009, 9:15 PM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

    Re: General FastCGI question

    FastCGI module will start Perl interpreter in new process when the first request will come, then it will keep it running for configuratble timeout, so inside of this timeout next request could be served by the same process. If you have more then one request waiting, FastCGI will start more processes with Perl, up to configurable number in total. That's how FastCGI works. That said, configuration of Perl for FastCGI could be tricky.

    There is another scalable solution -- you could use Perl connected to server through ISAPI extension. We recommend this for Perl, not FastCGI. You could see details here: http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx.

     

    --Sergei

Page 1 of 1 (2 items)
Microsoft Communities