Closed jan-gerling closed 5 years ago
UserService will also need to be a PersistentActor. This is because the SagaExecutionController will need to send commands to it. This is quite easy to do, as we simply need to move the logic from the REST endpoints to equivalent Command Receives, and have the REST endpoints send a Command to self (Shouldnt affect performance I think, as it is probably instant)
It will also have the advantage of event sourcing the persistentUserActorRefs ds.
Based on:
Akka Persistence Documentation Akka Persistence Implementation