As noted above, mod_perl and fastcgi seem to be the "logical" choice for this kind of thing. Both work by keeping the perl process alive for multiple requests. Note that you typically still need a connection for each apache child or fastcgi process, so if you really want only one connection you still need some kind of deamon to mediate, unless you're willing to throttle access to your program.