gRPC-java: Error detection for corrupted message payloads

97 views
Skip to first unread message

Srujan Narkedamalli

unread,
Jul 31, 2018, 7:53:34 PM7/31/18
to grpc.io
Hi,

When using gRPC with plain text and without any compression, is there any error detection mechanism in gRPC (in addition to TCP CRC) to check whether payloads were corrupted during transport?

Also, I see that gzip compression API in callOptions is marked as experimental API. Are there any plans to support it for production use in next few releases?
Thanks,
Srujan

Carl Mastrangelo

unread,
Aug 1, 2018, 3:29:28 PM8/1/18
to grpc.io
There is no error checking in plaintext mode.  The gzip compressor is experimental in API, but not in wireformat.  You could use your own compressor (or any data transform, such as appending a checksum) on the data to get.

That said, TLS provides this for you already.   It might be easier to just use self signed certs and ignore checking the CA, as TLS is pretty fast.  (faster than gzip).

Srujan Narkedamalli

unread,
Aug 1, 2018, 3:40:39 PM8/1/18
to grpc.io
Thank you Carl for a quick response. I will try out your suggestion.
Reply all
Reply to author
Forward
0 new messages