gRPC Plugin for generic gRPC Files/ replace protobuf serialization

60 views
Skip to first unread message

Gerrit Kühnle

unread,
Oct 30, 2024, 10:02:16 AM10/30/24
to grpc.io
Is there a plugin similar to grpc_cpp_plugin that can generate generic gRPC files for a service without relying on protobuf? Specifically, I'm looking to replace the Request and Response provided by the protobuf header in the service method with ByteBuffer. Alternatively, if I want to use a different serialization format instead of protobuf, is the recommended approach to override the Serialize and Deserialize functions in SerializationTraits for C++?

AJ Heller

unread,
Nov 4, 2024, 12:29:16 PM11/4/24
to grpc.io
Hi Gerrit,

Flatbuffers has done something like this, you can read about it here https://grpc.io/blog/grpc-flatbuffers/. That writeup has links to their code examples.

Best,
-aj

Reply all
Reply to author
Forward
0 new messages