I'm having an absolute blast building my first non-trivial actor system, and learning a lot. Kudos to the team.
The tool needs to access different database environments, depending on user input. In order to manage blocking, I have a Database actor which is initialized with a DatabaseRef, and has its own dispatcher - I'm using Slick because my learning curve was not already steep enough :) So I need to create/lookup different instances of the database actor for different named environments. Should I just pick an appropriately-high-up-the-tree parent, and maintain a map from environment name to ActorRef and then pass the ref from that parent to its children or other refs it has, or is there something cool I should be doing with actorSelection? Or just create on the fly as needed and generate a unique id? In another context I've done the future composition and pipeTo thing (big smile!) but ask?-ing some environment manager actor for these db actor refs doesn't feel right. On the other hand, I imagine that if I store the actor refs in a map, there is some housekeeping associated with that. Thanks for any tips. -- >>>>>>>>>> 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.
