That's pretty much what we do. We give one of our nodes the "supervisor" role and start a ClusterSingletonActor on it which spawns a control FSM (we call it a Pipeline) which in turn spawns worker FSMs (PipelineWorkers). Those actors then marshall data and delegate work to stateless actors elsewhere in the cluster.
I'm not quite clear on your question—creating an FSM actor is no different than creating any other actor—but I think overall it's a fine strategy. It's worked well for us. On Saturday, May 3, 2014 4:43:12 PM UTC-6, Eugene Dzhurinsky wrote: > > > <https://lh3.googleusercontent.com/-q3eBT3GunWI/U2Vu71QaOHI/AAAAAAAAERY/xcm31QJDDkc/s1600/fsm-flow.png> > > Hello! > > I'm trying to implement rather complex task processing, which involves > starting a "Control FSM" actor per task, it starts a set of "Worker FSM" > actors, and every "Worker FSM" sends messages to stateless actors and waits > for completion of the tasks. > > The overall flow should look like on the picture above. > > The question is - how can I create an FSM actor directly in the cluster? > > Thanks! > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
