in reply to Re: Pre-Forking Daemon with Parallel::ForkManager
in thread Pre-Forking Daemon with Parallel::ForkManager
Sure.
I am creating a server application that receives a street address over a socket, normalizes the address, gets the co-ordinates of the property, and grabs spatial and parcel data from an Oracle database. It then returns the information in one of several formats requested by the caller. It has to handle mutiple simultaneous requests. For technical reasons related to the way the queries have to be made I prefer it to be a forking server instead of multi-threaded.
In the past I've used a modified version of the formula in the Perl Cookbook but P::FM seems like a more elegant solution and I have used it sucessfully in several client programs. It really simplifies the fork management and that may make it easier for some future maintainer to support. The actual logic for processing the information is in its own subroutine so the desire is also one of making the code "prettier".
Once upon a time I wrote similar programs in C so I am not completely unfamiliar with the book-keeping necessary to make this work.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Pre-Forking Daemon with Parallel::ForkManager
by 1nickt (Canon) on Oct 18, 2019 at 15:49 UTC | |
by enemyofthestate (Monk) on Oct 18, 2019 at 16:42 UTC | |
Re^3: Pre-Forking Daemon with Parallel::ForkManager
by Fletch (Bishop) on Oct 18, 2019 at 15:20 UTC | |
by enemyofthestate (Monk) on Oct 18, 2019 at 16:47 UTC |