Im trying to write a app that polls a db table and processes the records found using Poe wheel run. This doesn't seems to work perfectly . Any suggestions out there.
The db poll sql
SELECT request_type destination port request FROM table1
WHERE STATUS_ID=200 limit 10;
results are printed to screen and picked up by poe wheel run
The poe wheel run
sub on_start {
my $child = POE::Wheel::Run->new(
Program => [ 'perl ~/sbin/db_poller.pl' ],
StdoutEvent => "got_child_stdout",
StderrEvent => "got_child_stderr",
CloseEvent => "got_child_close",
);
The db poll produces results faster than the wheel can process.
Any design suggestions?