Immutable transference is the only safe way to share state. If a state structure is immutable, then it is impossible for anyone to alter it. In Akka, this is how we guarantee the message we send is the same message our recipient receives. By making our messages immutable, we assure their accuracy and eliminate the possibility of contention. Let’s take a look at two ways we can model messages in Java.
Continue reading