Hi Rafal, Thank you for your remark. To a great extent I totally agree and thought (hoped) so, resp. Just a little thing prevents me from being totally happy:
On Wednesday, February 15, 2017 at 6:17:05 PM UTC+1, Rafał Krzewski wrote: > > W dniu środa, 15 lutego 2017 17:12:04 UTC+1 użytkownik > [email protected] napisa > Cluster is a heavy-weight resource. It brings on certain administrative > challenges, especially when running on a public cloud. Running two clusters > when in fact you could run one with two node flavors (roles) is an > overkill. > > Thought so. > > >> >> However, the question that arises is: Is it necessary in Akka that all >> nodes of a cluster have the same code base? >> > > No, they don't have to. You just need to make sure that all messages can > be de-serialized on the recipient node. There's nothing preventing you from > splitting your project into multiple modules and packaging a separate > binary artifact for each of the node roles that you require. Having a > single artifact is just a simplification. > > Hoped so. > Please note that even if unnecessary code is 1MB of compiled classes > (which would require a lot of source code), your final artifact will > typically weigh dozens MBs for a .tar.gz to hundreds of MBs for a Docker > image. So why bother, actually? > > > May be because I'm an old-fashioned guy who wrote his first Pascal-compiler on an 8-Bit Micro with 32 KByte memory back in the 80ties. But, more reasonable, the less custom code is loaded onto a node, the easier it should be to find bugs made by myself, especially as long as I don't have a feeling what goes on under the hood in the heavy weight cluster infrastructure. I'm a cluster newbie still - as I already confessed. So most likely I make more mistakes in configuration than in actor code. The more a little tiny but complete and working example (separated code and configuration for each role) would be very very welcome (.e.g lightbend's transformation example from akka-sample-cluster-scala). Shouldn't be so hard for a professional ;-) > Cheers, > Rafał > Thanks for your patience, Klaus -- >>>>>>>>>> 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.
