receiving the byte array for a protobuff in a streaming grpc

21 views
Skip to first unread message

Elhanan Maayan

unread,
Jun 24, 2019, 10:18:50 AM6/24/19
to grpc.io
hi..

is there a way for a streaming call in grpc to accept it's binary array prior to it being turned into protobuff? 

i'm aware that protobuff itself has this ability, but getting the byte array , turning it into an object and then turning it back to byte array seems redundant. 

the reason is that i'd like to create a "recording file " of the incoming traffic (to be played back later).

Carl Mastrangelo

unread,
Jun 24, 2019, 4:44:06 PM6/24/19
to grpc.io
You don't have to use the proto generated stubs.   You can make your own serializer / deserializer and persist the data.  You can even delegate to the next serializer and reuse the proto ones, if you want.   (this is for Java)
Reply all
Reply to author
Forward
0 new messages