Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I have a simple web-interface in PHP (aka a textarea only) and when the user enters some data, I call a Perl program to run externally. The thing is that this program relies on quite a few extra standalone software to produce its final result, some of which are quite time-consuming. I was thus thinking if it is worth implementing a queuing system for this perl program, which would mean that if for example 5 users submit a query at the same time, the computer will only execute one and put the others "on hold".
I have zero experience with these things, so any start-tips would be greatly appreciated... Also, do you think the queue should be done within the perl script? Or the PHP page can somehow do it before-hand?
The only thing I can think about is that I could have some kind of variable that holds my result (the final result after everything has run is that an initially empty variable gets a value and that value is the output to the user, so in that case I could "know" that the whole thing has finished executing (for the 1st user that submitted).
Thank you beforehand!