gRPC channel usage

58 views
Skip to first unread message

Amit Waisel

unread,
Mar 15, 2017, 8:03:42 AM3/15/17
to grpc.io
Hi All,
Is it possible to query network usage information (total bytes transferred, current transfer rate [bytes per second], etc) from a gRPC channel? Both secure and insecure.
(For example, I would like to query how many bytes were sent and received on the native SOCKET, including gRPC/protobuf overhead).

Thanks!
Amit

Carl Mastrangelo

unread,
Mar 15, 2017, 5:27:36 PM3/15/17
to grpc.io
It is possible to measure it yourself.  You can make your own custom message encoder which counts the bytes in and out, and then delegate to protobuf.  


Overhead is slightly fuzzy to calculate.  Protobuf isn't really overhead, unless you are sending large binary strings.  How much overhead is there in a struct?  Protobuf will likely compress the integers in the struct and result in a smaller message.  Does it still count as overhead?
Reply all
Reply to author
Forward
0 new messages