You can achieve this result using clustered routes and assign cluster roles to specific. For example, you want create 4 "directories", you can create 4 cluster aware routes and for each route your assign a role , "DIRECTORY1", "DIRECTORY2" etc. "Inter-directory" can be did using lookup actors. http://doc.akka.io/docs/akka/2.4.0/scala/cluster-usage.html#Cluster_Aware_Routers http://doc.akka.io/docs/akka/2.4.0/scala/cluster-usage.html#Node_Roles
On Saturday, November 7, 2015 at 6:33:25 PM UTC-3, John Antypas wrote: > > To all the Akka users out there -- I'm wondering how hard this would be.... > > For Akka (I'm on the scala side myself), what if we could extend the > cluster concept a bit more? I imagine a cluster of like minded actors > would all be under the same "Director". A Directory is an annotation that > says "All of these actors, regardless of function, may reside on the same > VM" > > If we could mark actors as such with a @Director <name> notation, I could > now write code, and later, have something like SBC generate manifest code > for various container systems. Let us assume the standard docker container > arrangement for a moment. > > Let's say I write my code with 20 actors, and it just so happens five of > each are under a given director -- meaning I have four directors. > > I can develop the code on my laptop and it will generate four docker > containers, each running a microkernel and a set of actors. > Intra-director actors communicate on the same VM, and inter-director actors > effectively use remoting. I can now simply move the containers to larger > systems for testing, and eventually to production. > > Key is -- I'm just packaging the actors into containers -- SBT will turn > those into something docker can handle. > > What do people think? > -- >>>>>>>>>> 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.
