5/6/2018
Posted by 
Akka Protobuf Serialization Example

Things working, and this our first Scala/Akka project ever. You received this message because you are subscribed to the Google Groups 'Akka User List' group. Ok, I got it to work myself that way (example with a smaller case class): case class Cmd(name: String) extends Serializable.Protobuf[Cmd] {. I have been trying to get Scala Protobuf messages working with the Akka protobuf serializer but I keep getting this response when I send the m. Scala Case Classes vs. Protocol Buffers with Akka over. Here is an example. Classes a re already serialized in protobuf? Is proto = 'akka.serialization. Dec 04, 2012 If you're fine with java serialization of your messages then. If someone coud give me an example, a project or a link to understand how to setup akka with protobuf.

Serializer with String Manifest The Serializer illustrated above supports a class based manifest (type hint). For serialization of data that need to evolve over time the SerializerWithStringManifest is recommended instead of Serializer because the manifest (type hint) is a String instead of a Class. That means that the class can be moved/removed and the serializer can still deserialize old data by matching on the String. This is especially useful for. The manifest string can also encode a version number that can be used in fromBinary to deserialize in different ways to migrate old data to new domain objects.

If the data was originally serialized with Serializer and in a later version of the system you change to SerializerWithStringManifest the manifest string will be the full class name if you used includeManifest=true, otherwise it will be the empty string. This is how a SerializerWithStringManifest looks like. Note ActorPath. Black Widow 2010. toSerializationFormatWithAddress differs from toString if the address does not already have host and port components, i.e. It only inserts address information for local addresses.