Reputation: 59
I need to find out what is the average size of request in gRPC when Im sending a string to server and receiving a string from server?
I read somewhere it should be around 20 Bytes but what I see in Network Monitor app is that the request is above 500 Bytes. So is it the smallest possible size of a gRPC message size or what?
Upvotes: 0
Views: 2163
Reputation: 12310
For a single rpc
, gRPC needs to do a few things:
gRPC is meant to be used for many RPCs on a single connection so the smallest possible rpc
message is really the bytes used for 4.
[Edit]
I checked and the minimum data exchanged for an rpc
is over 500 bytes, in terms of raw IP packets.
I used the gRPC helloworld.proto
, changed to send an int32
.
Inspecting packets in Wireshark showed the following IP packet totals:
rpc
rpc
Shutdown
Of those 546 "minimum" bytes:
rpc
Upvotes: 4