I developed/support a system that uses PerlEx and yes, if you're stuck with IIS then I'd definitely recommend PerlEx. (Of course, just because you're stuck with NT/Win2k doesn't mean you have to use IIS - Apache/mod_perl is an option and definitely a more secure option).

Our configuration pretty much matches yours with NT/IIS and an Oracle database. In fact IIS and the database run on the same server - a dual Pentium 233 with 512MB of RAM. The system has thousands of registered users and given the age of the hardware, the performance is remarkable (although obviously the hardware would melt if all the users tried to log on at once).

I'd echo perrin's comment that (as with mod_perl) you need to be careful to write clean code and use globals where you mean something to be global and lexicals everywhere else. I wouldn't necesarily counsel against slurping lots of data into memory - when our interpreters start up they suck down the contents of a few static tables from the database and this data persists in global hashes. As a result, a number of key pages don't have to hit the database at all and the performance boost is amazing.

You can use ActivePerl directly in ASP pages without shelling out for PerlEx. Unfortunately, your code will be recompiled on every hit and you won't get the benefit of persistent database connections (except perhaps through ODBC connection pooling). PerlEx can also run in an ASP emulation mode - that might be useful if you started by prototyping in ASP.

Although PerlEx gives you the equivalent of mod_perl's Apache::Registry accelerated CGI environment, it does not give you the full power of mod_perl under Apache. For example, you can't get hooked into the request handler chain for custom authentication, redirection etc as you can with mod_perl.

Another reason I recommend PerlEx is that I think the fine folks at ActiveState do a fantastic job for Perl in general and buying a PerlEx license helps them stay in business.


In reply to Re: Anyone using PerlEx? by grantm
in thread Anyone using PerlEx? by comatose

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.