Buffer Java protocol implementation with annotations like ProtoBuf-net

I am looking for an implementation of the Java Buffer protocol using the annotation in the same way as it is implemented in the protobuf-net project. I just want to just use annotation without having to constantly compile the .proto file with protoc.

+4
source share
2 answers

The Protostuff library can serialize annotated POJOs: https://protostuff.imtqy.com/docs/protostuff-runtime/

+6
source

In addition to the large Protostuff library that has already been mentioned, perhaps you can also try JSON instead, unless you should use protobuf for compatibility reasons. Java JSON processing is not only very convenient (annotation-based, automatic detection), but also competitive in performance (see jvm-serializers results, for example).

0
source

All Articles