Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Event routing question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thomas Bernhardt  
View profile  
 More options May 1 2012, 3:00 pm
From: Thomas Bernhardt <bernhardt...@yahoo.com>
Date: Tue, 1 May 2012 12:00:31 -0700 (PDT)
Local: Tues, May 1 2012 3:00 pm
Subject: Event routing question

I have a question please towards routing an event to remote actors:
Lets say I have node A hosting Akka actor A1, and node B hosting Akka actors B1 and B2.
A1 needs to send the same event to B1 and B2, however the event should only get serialized and transported to node B once, since there can be many B actors.
Is there an optimization or abstraction within Akka to make sure it is transported only once or do I need to write my own router perhaps?

Thank you!
Best regards,
Tom


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henrik Engström  
View profile  
 More options May 2 2012, 1:23 am
From: Henrik Engström <henrik.engst...@gmail.com>
Date: Wed, 2 May 2012 07:23:05 +0200
Local: Wed, May 2 2012 1:23 am
Subject: Re: [akka-user] Event routing question
Hi Tom,
You don't have to write your own router, you can use one from Akka.
Create a router Br on node B and have it forward the message to your
B1...Bn actors.
In your particular case the BroadcastRouter seems to be the right candidate.
See http://doc.akka.io/docs/akka/2.0.1/scala/routing.html
Cheers
//Henrik


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Bernhardt  
View profile  
 More options May 2 2012, 7:58 am
From: Thomas Bernhardt <bernhardt...@yahoo.com>
Date: Wed, 2 May 2012 04:58:49 -0700 (PDT)
Local: Wed, May 2 2012 7:58 am
Subject: Re: [akka-user] Event routing question

Thank you Henrik.

The concern I would have is that I don't want my code to know where these B1..Bn actors live. For example, they could be B1..B10 on node B and B11 to B13 on node C (distributed in any random fashion). I would like Akka and Akka Cluster to know where these actors currently live and route accordingly. Is this type feature on the Akka roadmap please?

Best regards,
Tom

________________________________
 From: Henrik Engström <henrik.engst...@gmail.com>
To: akka-user@googlegroups.com
Sent: Wednesday, May 2, 2012 1:23 AM
Subject: Re: [akka-user] Event routing question

Hi Tom,
You don't have to write your own router, you can use one from Akka.
Create a router Br on node B and have it forward the message to your
B1...Bn actors.
In your particular case the BroadcastRouter seems to be the right candidate.
See http://doc.akka.io/docs/akka/2.0.1/scala/routing.html
Cheers
//Henrik

--
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-user@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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henrik Engström  
View profile  
 More options May 3 2012, 5:47 am
From: Henrik Engström <henrik.engst...@gmail.com>
Date: Thu, 3 May 2012 11:47:45 +0200
Local: Thurs, May 3 2012 5:47 am
Subject: Re: [akka-user] Event routing question
Hi again,
Clustering will take care of this for you.
You can read more about the proposed Akka clustering here:
https://github.com/akka/akka/blob/master/akka-docs/cluster/cluster.rst
Cheers
//Henrik


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »