Using the proxy is the right approach. You don't know where the end destination is located anyway so even if you send it directly to a shard region on another node it will probably forward it to anyway.
/Patrik On Mon, Aug 3, 2015 at 4:59 PM, Yifei <sunyifei1...@gmail.com> wrote: > Hi, > > I would like to start different ShardRegions on some different hosts, and > make them communicate with each other. > > From the examples I learnt on the internet, I think we can achieve this by > using ShardRegion proxy. > > For example, SR1 @ host1 wants to send a message to SR2@host2, the SR1 > actor should start a SR2 proxy , and use SR2_proxy to send the message. > > However, can we send the message directly without using the proxy? > > 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. > To post to this group, send email to akka-user@googlegroups.com. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.