You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the GRPC library as the RPC implementation of the system. After optimizing the core algorithm of the system, the number of RPCs in the system will be reduced. However, I am also very concerned about whether the data transmission size has been reduced, but I do not know how to record the data transmission size, such as the total number of bytes sent and received.
Looking forward to your answer very much !!!
The text was updated successfully, but these errors were encountered:
Another approach is to override the marshaller on the MethodDescriptor to do the counting and then delegate to the regular marshaller. We have a preserialized example that could be useful to you for this approach. You could do it either on the client or the server.
Another approach would be to use either ClientInterceptor or ServerInterceptor.
For ClientInterceptor you would implement interceptCall which will give you direct access to the outgoing request and in that method wrap the listener so that you could track the response.
I use the GRPC library as the RPC implementation of the system. After optimizing the core algorithm of the system, the number of RPCs in the system will be reduced. However, I am also very concerned about whether the data transmission size has been reduced, but I do not know how to record the data transmission size, such as the total number of bytes sent and received.
Looking forward to your answer very much !!!
The text was updated successfully, but these errors were encountered: