Protobuf payload pass-through

48 views
Skip to first unread message

Vivek M

unread,
Jul 13, 2017, 2:50:29 PM7/13/17
to grpc.io
Hi,

I have a gRPC streaming RPC based on C++ stack which has to stream the protobuf messages as such as received from various sources. Now I observe that the stack takes a C++ object and then encodes that into protobuf message. I want to skip this operation and I am looking for a provision wherein the stack provides an interface to take protobuf message itself as its input.

Any help or pointers is much appreciated.

Thanks,
Vivek

Nicolas Noble

unread,
Jul 14, 2017, 1:00:09 AM7/14/17
to Vivek M, grpc.io
Check out the SerializationTraits generic class, and its specialization for protobuf in proto_utils.h - there is also a generic serializer that only takes a byte buffer of you prefer that route. 

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/100f68f3-2ac2-47ba-af90-a9a24de43926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages