Re: [akka-user] Implementation of Persistent Actor with initial state

2016-10-15 Thread Patrik Nordwall
I think fsm has something similar to recovery completed lör 15 okt. 2016 kl. 11:34 skrev Jakub Liska : > Yes, that's what I meant. > > Perfect, it would work in Persistent Actor... What about PersistentFSM ? > I guess that I will have to introduce an initial FSMState where

Re: [akka-user] Implementation of Persistent Actor with initial state

2016-10-15 Thread Jakub Liska
Yes, that's what I meant. Perfect, it would work in Persistent Actor... What about PersistentFSM ? I guess that I will have to introduce an initial FSMState where I would check whether the persistent state is empty or it was recovered and act on that. Cool, thanks a lot Patrik ! On

Re: [akka-user] Implementation of Persistent Actor with initial state

2016-10-15 Thread Patrik Nordwall
I'm not sure I understand. You want to read the old data if the persistent actor doesn't have any events of its own? You can check the state when you get RecoveryCompleted. You can also count the events/snapshot in receiveRecover and act on that when RecoveryCompleted. /Patrik fre 14 okt. 2016

[akka-user] Implementation of Persistent Actor with initial state

2016-10-14 Thread Jakub Liska
Hey, what is the best practice to do in this hypothetical scenario : 1) Say you have a time series pipeline that started at 2014 and created persistent state on S3 and other DB systems 2) You can introspect these storages and know what partitions already exists in all of them 3) The persistent