Re: [akka-user] What is idiomatic way to share state on a local node.

2016-08-05 Thread scala solist
This approach does not work with complex data structures. They should be composable, each part separately addressable, other actors should be able to subscribe to the state changes individually. There should be a way to create read-only view for a data and so on. Approach "just create actor and

Re: [akka-user] What is idiomatic way to share state on a local node.

2016-08-05 Thread Martynas Mickevičius
One of the simplest solutions would be to model it as an actor itself. A fun challenge would also be to model backgammon board based on a Conflict Free Replicated Data type. If you solve that, then you could use Akka Distributed Data

[akka-user] What is idiomatic way to share state on a local node.

2016-08-05 Thread scala solist
For example, we would like to model the backgammon game with akka actors. Both players are actors (either human or AI), there is also an actor that rules the board and determines dice rolls for players. They all share the single board. What is idiomatic way to have access to the board and to tak