When writing the Scala RemoteActor code, I noticed some pitfalls:
- RemoteActor.classLoader = getClass (). getClassLoader () must be set to avoid the "java.lang.ClassNotFoundException" Link
- doesnโt always work because of a โrace condition for which NetKernel (the entity responsible for sending messages remotely) that the remote actor supports can close before the proxy server of the remote operator (in particular, the trusted delegate) is able to send the message remotely by specifying local output. " (Stefan Tu)
- RemoteActor.select does not always return the same delegate ( RemoteActor.select - is the result deterministic? )
- Sending a delegate over the network prohibits normal shutdown ( unregistered RemoteActor )
- Remote performers will not stop if RemoteActor.alive () and RemoteActor.register () are outlawed. (See Magnus Response)
Are there any other problems a programmer should be aware of?
source
share