Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 809 Bytes

remoting.md

File metadata and controls

26 lines (19 loc) · 809 Bytes
id title
remoting
Remoting

Remoting makes it possible to lookup for actors that reside on another ActorSystems. The configuration is done by providing address and port in configuration file (see Configuration section) that the ActorSystem will be bound to:

import zio.actors._

for {
  _ <- ActorSystem("mySystem")
} yield ()

Then we can select actors from another ActorSystem and send messages thanks to underlying socket communication.

Serialization

Currently serialization is done via Java Serialization. User defined messages are serialized "as is" except for ActorRefs, which are serialized into actor's absolute path and deserialized into a remote ActorRef pointing to the original one:

diagram