I’m new to Akka, so if I’ve complete misunderstood everything, please be gentle.
I’m trying to implement a PersistentActor and use EventAdapters to separate between a hand-made domain model and a generated storage model (e.g. Protobuf). I understand how to implement this for events written to the journal.
The part I haven’t quite understood yet is how to do that for snapshots of the actor’s state. I want the actor to work with its state in terms of the domain model, but I would like it to be saved as a snapshot using the generated storage model.
From what I understand, EventAdapters only seem to apply for the journal, not snapshots. Is there a similar mechanism for snapshots? Or am I thinking completely wrong regarding the snapshots?