On Sat, Jan 24, 2015 at 5:08 PM, Hengky Sucanda <[email protected]> wrote:
> Hi Martynas, > > Yes i think you are right, what i meant was about the control of the load > balancing. The frontend node actually is part of the cluster as well, they > just have different role. So i think it was clear that it would not be > possible now if i want to change the load balancing mechanism. > Don't use ClusterClient when client and server are part of same cluster. Then you should use DistributedPubSub, which provides same features. You can use a few different routing strategies with pub-sub. See http://doc.akka.io/docs/akka/2.3.9/contrib/distributed-pub-sub.html /Patrik > > > On Friday, January 23, 2015 at 10:34:44 PM UTC+7, Martynas Mickevičius > wrote: >> >> Hi Hengky, >> >> what do you mean by load balancing? As you have already discovered if >> several actors are registered to the same path, a message for that path >> will by sent to randomly picked actor. This is random load balancing. >> >> If you need more control, you can join the frontend node to the cluster >> and use PubSub (which is actually used to implement ClusterClient) or >> Cluster Sharding. >> >> On Fri, Jan 23, 2015 at 9:20 AM, Hengky Sucanda <[email protected]> >> wrote: >> >>> Hi Guys, >>> >>> I'm currently developing an application using Play and Akka, and >>> currently is deploying one frontend nodes with multiple backend nodes. The >>> frontend node connects to the backend using ClusterClient. My question is, >>> does ClusterClient have load balancing mechanism so it can properly >>> distribute the message to other backend nodes? From what i have read in the >>> docs, it says that ClusterClient will send it to a random destination in >>> case of a multiple entries matching the path. Is there a way for me to load >>> balance the frontend and backend message sending if i am using >>> ClusterClient? >>> >>> -- >>> >>>>>>>>>> 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. >>> >> >> >> >> -- >> Martynas Mickevičius >> Typesafe <http://typesafe.com/> – Reactive >> <http://www.reactivemanifesto.org/> Apps on the JVM >> > -- > >>>>>>>>>> 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. > -- 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 [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.
