There is very nice example at typesafe templates, checkout this link 
akka-persistence-event-sourcing 
<http://typesafe.com/activator/template/akka-persistence-event-sourcing>

On Friday, April 3, 2015 at 8:53:50 PM UTC+3, Lukas Welte wrote:
>
> Hi,
>
> I'm trying to figure out how one would model a user system (register, 
> login, update) with Akka persistence.
> As  I am quite new to as well Actors as well as Event Sourcing and CQRS 
> i'm going forward and backwards on ideas.
>
> Right now I would basically see one solutions:
> Authenticator Actor (read), Registrator Actor (write), User Actor (read, 
> write): 
>
> Registrator uses the read model of authenticator actor to validate the 
> registration and if succeeds creates a new user (event). Authenticator 
> listens to the user event and maintains the list of all current user's 
> (id+token oder something similar) in order to handle login. When 
> authenticated the User Actor is retrieved by id and inside the User Actor 
> everything concerning the user (information reads and updates etc) is 
> handled
>
>
> But this solution does not feel quite right.
> What am I missing? What would you're ideas be on modeling/implementing 
> such a system with Akka and especially Akka persistence
>
> Best,
> Lukas
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to