I agree with Paul and would like to add that with a Cluster Group router you can have copies of your actors on the nodes in the cluster without having the tight parent relationship that remote deployment or Pool router implies.
Cheers, Patrik On Sun, Feb 21, 2016 at 3:49 PM, Paul Cleary <[email protected]> wrote: > I use HA PROXY and have blue / green (active + dark) backends. This > allows us to do a seamless traffic shift during an upgrade. It also allows > you to test the upgrade prior to making it "live". > > For the app, it depends on what you want to do. > > If you are using DDD, CQRS and model domains, then a typical approach is > to model your Aggregate Roots such that they leverage Akka Clustering. > This way, only one instance of a particular entity is active in the cluster > at any time. > > Akka Clustering takes care of failing over the entities to other nodes in > case one crashes (look at remember-entities if you want the entity to auto > start). > > If your application is purely stateless (you don't need the above), then > hell, just slap HA PROXY in front and round robin, you will be in a nice > place. > > On Thursday, February 18, 2016 at 6:41:06 AM UTC-5, Chelios wrote: >> >> Hey Guys, >> >> What is recommended way of scaling Akka application? >> >> Traditionally to scale a CRUD based 3 tiered application (Controller, >> Services, DAO) I would simply create copies of the application and slap a >> load balancer behind my applications to distribute the load. >> >> I know I should use remote actors and clustering to get scalability for >> Akka actors. But if I had copies of my application the load balancer would >> re-direct request to the second instance of my application just incase one >> dies. How can I achieve the same in Akka based application if one of the >> root machine where the guardian actor lives died, that would mean the whole >> application (all the child actors) shuts down right because of Supervision >> ? >> >> Is it possible to spawn another guardian actor in another machine which >> becomes the guardian/parent actor of the previously dead guardian actor's >> children but without killing any of the child actors of the dead guardian >> actor ? >> >> Chel >> > -- > >>>>>>>>>> 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 https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM Twitter: @patriknw [image: Lightbend] <http://www.lightbend.com/> -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
