Don't ask to ask, just ask | |
PerlMonks |
Re: Parent/Child,Boss/Worker->IPC suggestionsby perrin (Chancellor) |
on Jun 30, 2009 at 04:47 UTC ( [id://775905]=note: print w/replies, xml ) | Need Help?? |
I had good luck using Parallel::ForkManager and keeping shared state in a SQL database. I considered many other designs because the idea of polling the db bothered me, but ultimately this one was simpler to code and more scalable than anything else I came up with. However... Isn't gearman supposed to do this for you? Why don't you make the jobs that you want to pass off to the workers into gearman jobs?
In Section
Seekers of Perl Wisdom
|
|