Combination of SlickHandler and ActorHandler for Akka Projection


I’m creating a projection from akka persistence events source. I would like to combine the offset saving of SlickHandler with the actor states of ActorHandler. However, I find that the actor ref passing used for ActorHandler is in the internal codes and hence cannot be extended or overridden. Is there a way to do this?

Is it to do stateful logic in the handler? That is completely safe (just like it would be with an actor): Offset in a relational DB with Slick • Akka Projection

Thanks Johan. I will try this out.