For the record, I look inside ClusterSharding implementation and implement similar mechanism for my task.
вторник, 24 октября 2017 г., 15:29:33 UTC+3 пользователь Владимир Морозов написал: > > Hi all, > I try to implement Saga pattern in my application using persistence actor. > My question is: How I can resume all unprocessed sagas on server restart? > I have one idea - all request, thath required Saga processing, begin > processed via Perssisted sagaManagerActor that receive message like > Process(steps: Seq[SagaStep]) then persist it and after create child actor > that execute saga steps. Before child actor die it send message WorkDone to > parent. In this approach after actor system restart's I can manually start > sagaManagerActor and it automatically recreate all children from own > persistent state. > Is this approach right or I don't understand something in Akka Persistence > design? > -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
