How it works...
In this recipe, we demonstrated how it is possible to create an actor remotely. For this, we created two different remote-enabled actor systems. The first one uses application-1.conf, which configures the remote listener to listen in 127.0.0.1 and port 2552. The second one uses application-2.conf, which configures the remote listener to listen in 127.0.0.1 as well, but port 2553. It is not possible to configure both in the same port since there would be a collision. The configuration application-2.conf describes where simpleRemoteActor needs to be created by setting the value of the field remote akka.tcp://HelloAkkaRemoting1@127.0.0.1:2552. Based on this, the HelloAkkaRemoting2 application creates the actor in the HelloAkkaRemoting1 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access