USING MOD_PERL
By Admin -
Webhosting Directory and Details - January, 06, 2008
Mod_perl is an apache modul. Mod_perl attach interpreter perl in apache,
so apache cans run code/ perl script directly.
What mod_perl eminence is?
- Mod_perl can solve the
CGI scalabilities problem, because can cache script in memory. Even
with mod_perl we can make web application embedded style (code in same
file with HTML, like JavaScript). There are several modul can use for
this, among other HTML::embperll and HTML::Mason.
- With mod_perl a single server machine can handle burden until million
hit per day.
Site example that using mod_perl: slashdot.org and valueclick.com
What mod_perl lacks?
There are two main problem mod_perl users:
- From technique side, too large memory used.
Perl size is large, so if perl attach on apache will produced large size
apache process. With multi process apache this day, total memory number be
need is much.
Generally mod_perl installation machine now completed memory minimum 256
mb. If this machine setting with database server too, add memory is
necessary. In high hit condition, can formed many apache process in a time
so memory needed is increasing.
This problem can solve with put small other web server, is that apache
with proxy or squid. Client connection will handle by small web server,
while large apache with mod_perl just producing dynamic page only.
- non technical side, it is too long and difficult to subdue mod_perl
(not step, but "vertical learning curve", ever mentioned by Stas Bekman,
tutorial mod_perl mod_perl Developer's Guide author).
Although CGI program still can run on mod_perl (by perl apache: registry
modul) so we can still make CGI style program, there are several variance
we have to notice, mainly because now your CGI caching by web server.
Mod_perl server administration must understand and subdue also, i
recommend still try and use mod_perl because:
- Control level it offer is very high Cause provide complex interface to
API apache, with mod_perl we can setting apache in particular.
- Vow till the end with apache. With choose mod_perl, you can say "ring
exchange”. Vow till the end with apache.
Because mod_perl apache modul, specific for apache. It is not a problem,
i thought, because every party already acknowledges stability and execution
this web server.
According to a research, web server that uses most in internet is apache.
Some commercial product too, like stronghold (c2net) and web sphere (ibm),
using apache resource code.
|