I am working with Go
and Grpc
. I have one XML
file to be sent from client to server. When server calls a method on client, client responds back with an XML
document which could range from few kB
to 100s MB
or may be more. Please help me with how should I do it? Should I
- assign the value to a
string
variable and send normally ->rpc GetCMData (CmRequest) returns (CmReply) {}
- assign the value to a
string
variable and send as astream
->rpc GetCMData (CmRequest) returns (stream CmReply) {}
- Is there any other better way to do so?
This is how CmReply
looks like:
message CmReply {
string name = 1;
}