(I've asked this question in Play framework mailing list 
<https://groups.google.com/forum/#!topic/play-framework/zjBhdC80VWM> but it 
seems better to be asked here)

It's possible to use Play built-in actor system but it seems OK for a few 
actors (as it said in docs) while I would have a heavy actor system. 
I'm looking for the best way to integrate Akka with Play. I would have a 
relatively big simulated world in my actor system and the Play application 
would be its face. 

I can simply create my actor system in Play global object:

object Global extends GlobalSettings {
  lazy val myWorldSystem = ActorSystem("MyWorld")
}

And then asking from actors in Play actions:

def index = Action.async { 
  val actor = Global.myWorldSystem.actorFor(
"/my/actor/path")
  val result = actor ? SomeMessage()
  ...
}

I'm not sure if it's the best way in terms of performance and design. Are 
there any Activator template (example) for this type of applications?

Thanks,
Amir

-- 
>>>>>>>>>>      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