snoopie has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks! I'm thinking about how to write a good Web Application Server on Perl. The server itselt should process client requests for data, fetch data from Database and return it to client. One important thing is that server should cache all data in memory to avoid nedless requests (or another time-taking operations). Is there any solution for such task ?

Replies are listed 'Best First'.
Re: Perl Application Server
by arkturuz (Curate) on Oct 11, 2006 at 08:33 UTC
    Yes, there is. One such solution is POE. Check the POE cookbook where you have some examples of Application Servers. I haven't used it (yet). As for caching you might check memcached. It works pretty nice. You will also need the daemon. I use memcached to cache web pages that are constantly visited, but leave the SQL query caching to the database server.
      You gave me the right direction, thanks a lot.
Re: Perl Application Server
by shmem (Chancellor) on Oct 11, 2006 at 09:38 UTC
    There is a Perl Application Server on sourceforge. Have a look.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}