> On 13 Feb 2018, at 8:26 pm, Patrik Nordwall <patrik.nordw...@gmail.com> wrote: > > You have to do the right become transitions in the replay of the events, and > when consuming snapshots. Especially the latter is very easy to get wrong. > Thanks Patrik, that shouldn’t be an issue for my use case. My states are unauthenticated/authenticated… and that’s it. The actor only becomes authenticated after receiving a message from the outside along with some validation. So, I’m comfortable moving into the unauthenticated state until receiveRecover is finished.
While receiveRecover is executing though, I presume that I’m going to have to store the current state in a var…? Here’s what I’ve started with: override def receiveRecover: Receive = { case e: Event => context.become(unauthenticated(state(e))) } …but of course, there is no existing state… receiveCommand will present a similar challenge. Any advice? Cheers, -C -- >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.