I think this is what you're after:

https://doc.akka.io/docs/akka/current/routing.html#broadcast-messages

If you want to hide the decision logic from the sender, you can create a custom actor that inspects the message and /either/ sends it to the hashing router as-is /or /sends it wrapped in a Broadcast message to have it delivered it to all of the routees.

Cheers,

MichaƂ


On 06/03/18 14:33, Iman wrote:
Hello,
I am trying to use AKKA routers in my application. This is my first time to try to use touting. The problem is that I want to have the messages to be routed based on the routing logic (hashing in the case of my app) and others to be broadcated to all routees. Is there a way to create a router that behaves differently when it receives different types of message? I would appreciate any pointers regarding that.
Thanks
--
>>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com <mailto:akka-user+unsubscr...@googlegroups.com>. To post to this group, send email to akka-user@googlegroups.com <mailto:akka-user@googlegroups.com>.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

--
Signature
Michal Borowiecki       <http://www.openbet.com/>
*Senior Software Engineer L4*
*T:*    +44 208 742 1600 <https://signature.openbet/cgi-bin/signature.php#>     
  
        
*E:* michal.borowie...@openbet.com <https://signature.openbet/cgi-bin/signature.php#> *DL: * +44 203 249 8448 <https://signature.openbet/cgi-bin/signature.php#>
        
        *W:*    www.openbet.com 
<https://signature.openbet/cgi-bin/signature.php#>
**      
        
        
        **      

<https://www.openbet.com/com/email_promo>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@openbet.com <mailto:postmas...@openbet.com> and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by OpenBet for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. OpenBet Ltd. Registered Office: Chiswick Park Building 9, 566 Chiswick High Road, London, W4 5XT, United Kingdom. A company registered in England and Wales. Registered no. 3134634. VAT no. GB927523612

--
     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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to