I'm trying out Akka persistence with CQRS in mind. On my Write side, I've the entity like
case class Evt(data:String)
My persist code looks like
persist(Evt(s"${data}"))
All works on the write side.
I'm using Redis journal plugin.
When I attempt to read the journal entry on the Read side, its looking for the class WriteModel.Evt and seeing below error
[akka.dispatch.Dispatcher] WriteModel.Evt java.lang.ClassNotFoundException: WriteModel.Evt
Am I persisting the event appropriately?
What is the best practice to share the contact between Write and Read/Aggregator side ?