This is a multi-part message in MIME format.
--===============1661153730==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0095_01C830E1.41118060"
This is a multi-part message in MIME format.
------=_NextPart_000_0095_01C830E1.41118060
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi
I have a CGI script which among other things ties to a dbm file in order =
to do look ups on certain CGI parameters. Performance is ok but I wonder =
whether it is efficient for each call to the script to open a tie to =
what is essentially the same data and whether it will suffer under load. =
I tried to find out more about how tie works but it is not clear to me =
whether or not it loads the whole dbm into memory. If it does then I =
would like to assess other ways of doing this.
I suspect implementing mod_perl or ISAPI when I have not used them in =
much before is too much work and unknowns for this urgent critical task =
(though if this sounds wrong let me know!)
So my question is whether there is a another way of sharing this data =
between many CGI calls which is as fast and light on memory as possible. =
One idea I had was to set up a SOAP or XML RPC server which has the tied =
dbm and responds to calls from the CGI scripts with the specific info =
required for each one. A round the houses way of doing it perhaps but =
one that I can get my head around (and give me a chance to play with =
writing a SOAP or XML RPC server).
But I thought I would run it past you in case you could point out any =
obvious things I had missed or had your own ideas about an elegant =
solution to this.
Or should I really look at mod_perl/ISAPI, CGI::Application or something =
else?
Or is it fine to keep doing it the way I am?
I do intend to try some benchmarking but some pointers as to which =
options are worth focusing on would be a huge help.
Thanks
Mark
------=_NextPart_000_0095_01C830E1.41118060
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have a CGI script which among =
other things
ties to a dbm file in order to do look ups on certain CGI parameters.
Performance is ok but I wonder whether it is efficient for each =
call to the
script to open a tie to what is essentially the same data and whether it =
will
suffer under load. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I tried to find out more about how tie =
works but it
is not clear to me whether or not it loads the whole dbm into
memory. </FONT><FONT face=3DArial size=3D2>If it does then I would =
like to
assess other ways of doing this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I =
suspect implementing mod_perl or ISAPI
when I have not used them in much before is too much work and
unknowns for this urgent critical task (though if this sounds =
wrong
let me know!)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>So my question is whether there is a =
another way of
sharing this data between many CGI calls which is as fast and light on =
memory as
possible. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>One idea I had was to set up a SOAP or =
XML RPC
server which has the tied dbm and responds to calls from the CGI scripts =
with
the specific info required for each one. A round the houses way of doing =
it
perhaps but one that I can get my head around (and give me a chance to =
play with
writing a SOAP or XML RPC server). </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But I thought I would run it past you =
in case you
could point out any obvious things I had missed or had your own ideas =
about an
elegant solution to this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Or should I really look at =
mod_perl/ISAPI,
CGI::Application or something else?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Or is it fine to keep doing it the way =
I
am?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I do intend to try some benchmarking =
but some
pointers as to which options are worth focusing on would be a huge
help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Mark</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0095_01C830E1.41118060--
--===============1661153730==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1661153730==--
