Hi Yan,

Messages in the actor mailbox, that is has not yet been processed by the 
actor, when a persistent actor stops or crashes are lost. To provide 
stronger guarantees that no message that has been sent from one actor to 
another is lost you will have to use 
UntypedPersistentActorWithAtLeastOnceDelivery, so you were on the right 
track. You can find an example of how to implement such an actor in the 
docs 
here: 
http://doc.akka.io/docs/akka/2.4.2/java/persistence.html#At-Least-Once_Delivery

--
Johan Andrén
Akka Team, Lightbend Inc.

On Thursday, March 31, 2016 at 6:34:58 PM UTC+2, Yan Pei wrote:
>
> I am new to AKKA. I did some researches but don't find the answer I 
> wanted. Maybe I don't know what keywords to search for.
>
> The scenario is we are trying to use akka persistence cassandra plugin to 
> save the incoming messages to cassandra in case the Actor is stopped or the 
> server is down, the unprocessed message can be recovered and being process 
> again.
>
> I've extended from AbstractPersistentActorWithAtLeastOnceDelivery and 
> things were working well. But that approach doesn't work with Actors with 
> Router.
>
> Then I changed back to use UntypedPersistentActor, but I don't know how to 
> only recover the messages which hasn't been processed. 
>
> I might now understandd the UntypedPersistentActor very well.
>
> Please give me any suggestions on how to use UntypedPersistentActorto to 
> recover the unprocessed messages.
>
> Thanks very much!
> Yan
>

-- 
>>>>>>>>>>      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.

Reply via email to