Devanchya has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a POE application that reads an XML Stream. Incoming XML data is used to fire a wheel that can run up to an hour.
Reading the cookbooks, I can see that POE can handle long running processes... My questions is how to best handle a queue of data with this long running process. I can send the message into a POE::Queue::Array but this is where I get lost in the docs.
What's the best way to handle reading the queue?
Should I be throwing a kernel yield when I am done one of the long running processes and handling that as an additional event to the kernel yield that is reading the data from the XML stream?
Are there any decent example of using POE::Queue in this type of application.
If I am approaching this the wrong way, feel free to say so. I do need to read the XML stream using POE due to vendor limitations.
THANKS!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POE, POE::Queue and long running tasks.
by rcaputo (Chaplain) on Aug 30, 2008 at 05:26 UTC | |
by Devanchya (Beadle) on Aug 30, 2008 at 14:49 UTC | |
by Devanchya (Beadle) on Aug 30, 2008 at 22:34 UTC |