Introduction
As mentioned before, Akka actors are distributed by default. This concept allows you to expand your actor system beyond a single JVM. Akka provides mechanisms to connect actors running in different JVMs seamlessly. In a production system, you want to ensure high availability and resiliency; Akka remoting and Akka clustering help you achieve this.
Every actor has an address that is unique within an actor system. This address has the following format:Â <actor system>/<actor path>
. Although this format is correct within a local actor system, when you are accessing remote actors, the fully qualified format is this: <protocol>://<actor system>@<host>:<port>/<actor path>
. This concept is also known as location transparency.
We need to differentiate between two ways of accessing remote actors:
- Â Akka remoting: This means that an actor knows the location of the remote actor and uses its fully qualified address to communicate with it. The communication...