Hi!I would like to know if there is a best practice in actors instanciation : we have a dozen of different actors, each performing a particular operation and and giving the result of this operation to the next actor.Our first idea was to create a master actor which would institate all actors then starting the process by sending a message to the first actor in the graph. Each actors would get a ref to the next actor by calling system.actorFor on the correct path. The point is we want the next actor resolution to return an actor ref from a group of actors performing the same action like a Router actor do. But it seems that a actorFor does not work when asking a router actor reference?.. Am I correct?
Going further, is this way of instantiating all actors is a good practice versus the way in which each actors instantiate his own child actors?In our first idea we would like the fact that each actors references are "shared" between all the actor systems. Plus, it seems easier to monitor the system.Would it be possible to have some input on this?
Thanks!Yann.--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/mGxAKD8HLkoJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Hi Yann!
On Fri, May 25, 2012 at 10:30 AM, Yann Perchec, Novapost <yann.p...@novapost.fr> wrote:
Hi!I would like to know if there is a best practice in actors instanciation : we have a dozen of different actors, each performing a particular operation and and giving the result of this operation to the next actor.Our first idea was to create a master actor which would institate all actors then starting the process by sending a message to the first actor in the graph. Each actors would get a ref to the next actor by calling system.actorFor on the correct path. The point is we want the next actor resolution to return an actor ref from a group of actors performing the same action like a Router actor do. But it seems that a actorFor does not work when asking a router actor reference?.. Am I correct?How about you send messages to the parent and the parent routes the messages?Going further, is this way of instantiating all actors is a good practice versus the way in which each actors instantiate his own child actors?In our first idea we would like the fact that each actors references are "shared" between all the actor systems. Plus, it seems easier to monitor the system.Would it be possible to have some input on this?Cheers,√
Thanks!
Yann.--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/mGxAKD8HLkoJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Hi Yann!On Fri, May 25, 2012 at 10:30 AM, Yann Perchec, Novapost <yann.p...@novapost.fr> wrote:Hi!I would like to know if there is a best practice in actors instanciation : we have a dozen of different actors, each performing a particular operation and and giving the result of this operation to the next actor.
Our first idea was to create a master actor which would institate all actors then starting the process by sending a message to the first actor in the graph. Each actors would get a ref to the next actor by calling system.actorFor on the correct path. The point is we want the next actor resolution to return an actor ref from a group of actors performing the same action like a Router actor do. But it seems that a actorFor does not work when asking a router actor reference?.. Am I correct?
How about you send messages to the parent and the parent routes the messages?Going further, is this way of instantiating all actors is a good practice versus the way in which each actors instantiate his own child actors?In our first idea we would like the fact that each actors references are "shared" between all the actor systems. Plus, it seems easier to monitor the system.Would it be possible to have some input on this?Cheers,√Thanks!Yann.--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/mGxAKD8HLkoJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
--
Viktor Klang
Akka Tech Lead
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.