in reply to Re: Re: Database handler shared among forked processes
in thread Database handler shared among forked processes

You can write your system so that your child processes are persistent.

You then communicate between the master (that gets the requests) and each of the children through some form of pipe (maybe Unix sockets) and the child processes can then avoid re-connecting for each request.

The code obviously gets more complicated, but it's certainly feasible.

Michael

  • Comment on Re: Re: Re: Database handler shared among forked processes