A java serialization library with built-in support for forward-backward compatibility (schema evolution) and validation.
efficient, both in speed and memory
flexible, supporting pluggable formats
Usecase
messaging layer in RPC
storage format in the datastore or cache
Maven
For the core formats (protostuff, protobuf, graph)
io.protostuff
protostuff-core
1.7.2
For schemas generated at runtime
io.protostuff
protostuff-runtime
1.7.2
Usage
public final class Foo
{
String name;
int id;
public Foo(String name, int id)
{
this.name = name;
this.id = id;
}
}