I already know that each mod_perl process would keep a connection to the database.
But the problem is, my program is not connectting to a database. So, Apache::DBI can not help me.
Keeping a local copy of data is unaccpetalbe because the data might change quickly.
Maybe I should give more details of my task.
My job is writing the configuration module for a embeded system that allows administrator to manage it remotely by a client program. The client and server talk to each other by a private protocol.
Now my boss realized that CS is not as popular as BS. So he asked me to give him a BS resolution but I should not change codes on the server side. So my plan is like this:
| Browser |<---http---->| Web Server |<--private protocol-->| Data |