Hi. I'm building a 'toy' game that makes uses of akka-persistence, in order to learn it.
in a nutshell the game is 1000's of people/bots create villages, they act independently of each other, and generally pass messages to each other to chat/fight and all that good stuff. Where I am having problems are: 1. how do I initialize the persistence system at the start of testing so I am in a 'known state' when I start. 2. how I assign IDs (persistanceId) to actors. Ideally I would use a map reference for while the villages exist, and be able to re-use them if a new village is created. but the problem is it finds the old village, and replays all the events (including the death event which kills it). I don't mind re-using a old actor, but i'd like to stop it (ie poisonpill) when it isn't active. It seems like they need to be unique for the life of the system, and to do so I would need a counter in place or GUIDs. but then I would need to keep track of the Map reference/GUID mapping meaning my code would need to first talk to the mapping holder, and then to the village itself (2 messages, 1 sync) which seems like non-ideal. (as opposed to context.actorselection("XYZ map-reference") ! message which I guess is still 2 messages under the covers, 1 sync too) 3. the recovery log only seems to 'start' when I bring up the actor. Is there a way to know which actors are currently 'active' and just let Akka start them all up, instead of me keeping a list/map of 'active' villages, and manually restarting them. Thanks .. Ian. -- >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.