On 11-Jul-2007 at 03:12PM Robert wrote:
[...]
So basically I was think that I could setup events to monitor the
"good" drop directory and then process those in "parallel" (all theory
of course). It may be I can just use POE to handle the whole process
more "nicely".
Does POE have any issues running for a long length of time? We
basically have a daemon running that waits for the emails to come it.
POE's excellent for daemons. After I had been using POE
on several projects, I noticed a pattern that I started
calling "Server/Controller/Subprocess". It was so useful
that I created a generic daemon and put it on CPAN. The
POE cookbook has great examples but they are mostly not
complete solutions. This is a complete working example.
http://search.cpan.org/search?query=POE-Component-GCS&mode=dist
A demo/README shows how to get a demo up and running in
a couple of minutes. A demo/CUSTOMIZE has some notes on
modifying the classes for additional usage.
Note to mailing list:
This generic client/server uses a POE-Event-Message class
that provides for multiple routing and is designed to be
plug-compatible with POE's 'postback' feature. I would be
interested in feedback that others on this mailing list
have on this preliminary attempt at a messaging protocol.
http://search.cpan.org/search?query=POE-Event-Message&mode=dist
Thanks,
Chris