I'm in the planning stages of an ajax based webapp that will talk to a daemon server (POE I think) with workers to handle tasks. I have the following needs:
1)There will be a control server (daemon) that hands tasks out to workers based on the task type. 2)The workers will communicate with the controller via JSON/XML-RPC so that each worker runs independently of any other 3)The tasks and work will be async 4)Each of the workers will be talking to a database (mysql) as well as the controller. 5)The controller will respond to the ajax calls with json/xml Example Workflow: User clicks "Start Test"--->Controller processes ajax call params---->Controller tells test scheduler (worker) to start the test---->test scheduler moves the test to the top of the queue and starts it---->test manager (worker) controls the flow of the test providing detailed real time results for each checkpoint. Each communication from controller to worker is handled using http ipc(json preferably)......so that the workers could exist on other servers if necessary. My long winded question is about guidance on the tools for this job. It seems like POE is perfect for this but I'm having trouble figuring out how to get started or which components to use. 1)Should I use mod_perl2 with POE? 2)Should I use POE-Filter-JSON and POE-Component-Server-JSONRPC? 3)How should I plan for handling multiple tests running async? Thanks for any guidance or pointers in advance!!!
