jan-gerling / FLOCKA

1 stars 1 forks source link

WIP: Persistent User Service Prototype #12

Closed jan-gerling closed 5 years ago

jan-gerling commented 5 years ago

Based on:

Akka Persistence Documentation Akka Persistence Implementation

PSilvestre commented 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.