New to akka + play. I have a scheduler that sends a message to an Actor (using akka quartz). During scheduled time, I want to implement the following -
The actor gets list of jobs. (1000s of jobs). Call it parent actor
This parent actor creates pre-defined set of child actors (say 50) at a time and delegate jobs
(Parent to maintain kind of job queue)
Parent to wait for each of the child actor to finish off job.
When one child actor finishes of job, it notifies the parent. the parent then checks if there are anymore
pending jobs and creates a new child for pending job
Parent waits for all child to complete jobs and there no more pending jobs.
Parent waits for next schedule event.
what will be the right approach to implement the above ? I am using Java.
Thanks and Regards