I am testing akka persistence with eventstore.
My problem is that i can’t seem to figure out what akka persistence saves as event data.
My events are ScalaPB classes, and should be serialized to protobuffer. But i am having difficulty deseralizing them, in my own code. Akka persistence works as it should.
It seems to be protobuffer binary format , but is my event wrapped in some other class?
I have tried:
val serializa1tion = SerializationExtension(context.system)
val event = serialization.deserialize(e.linkedEvent.data.data.value.toArray, myeventclass)
But then it tries java serialization and fails.
Some help would be great.