in reply to Queuing system for running a perl program
For example, is the user informed that the "process is running", come back later for your answer, or "your results will be ready in about x seconds/minutes."?
Why does processing take so long?
etc...
If it were me, I would start by considering changing that PHP script to Perl, if for no other reason than to reduce the number of languages by one.
The queue system seems like a reasonable approach, as long as you can communicate it back to your user, so they are not left wondering if something is happening.
That, to my way of thinking, implies that Perl should do the queuing and, if required, inform PHP and thus the user.
Your back-end is already working, though slowly. I would also examine those 'stand-alone' software pieces and see if what they do can be done better(maybe by Perl).
Another question: are these jobs that are running somehow attached to a session?
How do you ensure the results come back to the user that submitted?
What about jobs where the user leaves before the results come back? Is that job going to be de-queued?
Hope these thoughts are helpful, and best of luck with your project.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Queuing system for running a perl program
by Anonymous Monk on May 08, 2014 at 12:24 UTC | |
by GrandFather (Saint) on May 08, 2014 at 12:52 UTC | |
by wjw (Priest) on May 08, 2014 at 13:04 UTC | |
by hippo (Archbishop) on May 08, 2014 at 12:54 UTC |