Message serialization

Another key aspect of distributed computing is the serialization of the message data that passes the JVM boundaries. Message serialization allows us to save the state of an object into a sequence of bytes, in order to allow us to rebuild the object with the state using the byte sequence.

In the case of Akka as well, whenever the message passes the JVM boundary, the principles of object serialization get applied. In Java, the serialization of a class is enabled when the class implements the interface. The serialization interface does not impose that any methods be implemented, but only serves to identify the semantics of being serializable. The serializable interface only saves the object state and not ...

Get Akka Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.