in reply to POE modules advice
It sounds like you're putting the cart before the horse. POE::Wheel::Run includes parent/child process communication. POE::Component::Client::HTTP is not a a HTTP server. If your "clients" are simple programs, they could be implemented with plain LWP to talk to a POE-based HTTP server. You haven't explicitly said the httpd is running POE; I'm assuming yes because of the POE::Wheel::Run.
What I think (which is based on incomplete information and is probably wrong):
I would have the child processes report their status as it changes, and then store that status in the HTTP session (not a POE session). When the client polls for status, it can be satisfied by the session information rather than asking the child process (which may have exited or crashed anyway).
http://poe.perl.org/?POE_Cookbook/Job_Server is a telnet based job server. It's not appropriate for your task, but it does show one way to write a server that accepts jobs and then runs them in separate processes.
Sorry for the vague answer. I may be able to narrow down my advice if you provide more specifics.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: POE modules advice
by Neid (Scribe) on Mar 19, 2009 at 21:45 UTC |