I am trying come up with better ways to deal with the 4mb message size limit in grpc. I need a way to measure the size of the grpc response received on client side. When the response exceeds 4mb limit grpc shows a error message like:
could not greet: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (74000087 vs. 4194304)
with "74000087" being the actual size of the response. How is this calculated? Is there a way to get this value?
I have gone through multiple articles on this topic but could find nothing? Can someone please help? Thanks.
My implementation is using golang