kiz has asked for the wisdom of the Perl Monks concerning the following question:
I am about to embark on a (small ?) project to write a server-thing to farm images for a Web-based service we are prototyping.
One of the things that we'd like (to take the opportinity) to prove is some form of persistent, memory-resident server.
(Seeing as you asked, it means we can create Z39:50 connections that persist across multiple HTTP sessions.
Z39.50 is an international standard for communication between computer systems primarily, library and information related systems. It requires a persistant connection to enable subsequent data retrivals.)
So far, I have two thoughts on this (both of which may be wrong :) -
- Create a Perl package, and load it into a mod-perl-enabled apache-server at startup.
- Use this to create a global nested-hash data-structure that is therefor accessable for all child-processes. It uses a system of session IDs to assocciate references to particular user-requests.
- Create a Perl script (completely seperate form any web servers) that sits in an endless loop, and uses IO Sockets to pass data back and forth.
- This is a much more complex idea, which worries me... (and I have never done any IPC-stuff before :)
My basic questions are
- Are either of these way off-base, and unworkable
- Has anyone does something like this before, and can they offer some suggestions for ideas and possible pitfalls
-- Ian Stuart
A man depriving some poor village, somewhere, of a first-class idiot.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl-based server for use by CGI scripts.
by chromatic (Archbishop) on Feb 20, 2002 at 17:58 UTC | |
Re: perl-based server for use by CGI scripts.
by rinceWind (Monsignor) on Feb 20, 2002 at 15:13 UTC | |
Re: perl-based server for use by CGI scripts.
by beebware (Pilgrim) on Feb 20, 2002 at 17:36 UTC | |
by kiz (Monk) on Feb 21, 2002 at 11:48 UTC | |
by beebware (Pilgrim) on Feb 21, 2002 at 23:16 UTC | |
Re: perl-based server for use by CGI scripts.
by Buggs (Acolyte) on Feb 21, 2002 at 04:10 UTC | |
Re: perl-based server for use by CGI scripts.
by TippyTurtle (Novice) on Feb 23, 2002 at 00:37 UTC |
Back to
Seekers of Perl Wisdom