Hi Christopher, Thanks for your reply! I am thinking how to use this function to check if the msg is larger than the threshold of the channel we are using. and trying to avoid some resources exhaust issue. I am using java and gprc 1.13.1 and protobuf 3.5.1.
On Wednesday, August 8, 2018 at 2:20:13 PM UTC-7, Christopher Warrington - MSFT wrote: > > On Wednesday, August 8, 2018 at 1:14:35 PM UTC-7, Grpc learner wrote: > > > How can I get the size of msg before grpc send it to client? Like how > many > > bytes it uses. > > Assume you had a magic function that returned this value: how would you use > it? > > Do you only care about the size of the message itself, or are you > interested > in the amount of data gRPC will send over the network as well? (E.g., > metadata, compression, framing data as well) > > Are you using Protocol Buffers for your messages or something else? > > Which language(s) are you programming in? > > -- > Christopher Warrington > Microsoft Corp. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/b1aa920c-e708-4311-b185-5b805026792e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
