in reply to Re: POE modules advice
in thread POE modules advice

Yes that's true, httpd will be also POE (e.g. POE::Component::Server::HTTP ) I saw that POE::Wheel::Run uses stdin/stdout for communication.
My workers is a perl code so I would pass subroutine reference to Wheel::Run 'Program' argument.
Unfortunately that code may print some debug stuff.

I was thinking about worker code as something similar to:

sub worker{ my $self = shift; while( my $task = $some_queue->dequeue ) { # do_something() can print debug output to STDOUT my $result = $self->do_something(); my $status = { result => $result, time => time(), worker_id => + $self->id}; $self->update_status( $status); } }

And parent code something like:
sub parent { my $self = shift; $some_queue->enqueue( $new_task); } sub update_status_event{ my $status = shift; # do something with status #... }

So I think POE::Wheel::Run for inter-process communication is not enough.
Any advice here?

Thanks,