Remote Actors
In the actor examples we have written so far, the actors and their clients were all within a single JVM process. One camp of developers believes actors should really be used for interprocess communication, like in Erlang. The other camp of developers uses actors for intraprocess communication like we saw. Scala and Akka cater to both camps.
Using remote actors in Akka is much like using in-process actors; the only difference is in how we get access to the actors. Under the covers, Akka uses JBoss Netty and Google Protocol Buffers libraries to make the remoting happen seamlessly. We can pass any serializable message and references to any actor to the remote actors across process boundaries. Akka provides both programmatic and configuration ...
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