If I am not mistaken, persistence-query does not support snapshots so you 
would have to save the snapshot along with your offset, and then for 
recovery you should load it manually and restart the persistence-query from 
the saved offset.

Tal


On Thursday, January 5, 2017 at 4:21:36 PM UTC+2, rrodseth wrote:
>
> I have a PersistentActor which is a read side projection that runs a 
> persistence-query stream. It's only state is an offset, a Long. Protobuf 
> serialization is used for persistence messages.
>
> I'm preparing to add snapshotting. The examples show a "snap" message 
> handled by calling saveSnapshot.
>
> Am I correct that I should make the internal state passed to 
> saveSnapshot() a Protobuf object as well?
>
> And when would "snap" (or case object SaveSnapShot) typically be sent? 
>

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