Solution Review: Implementing Streaming Calls
Review the solution of converting the unary call into a bi-directional streaming call.
We'll cover the following...
Overview
The code widget below shows the complete solution to the exercise where a unary gRPC call was converted into a bi-directional streaming call.
syntax = "proto3";
option csharp_namespace = "BasicGrpcService";
package basic_grpc_service;
service Chatbot {
rpc SendMessages (stream ChatRequest) returns (stream ChatReply);
}
message ChatRequest {
string name = 1;
string message = 2;
}
message ChatReply {
string message = 1;
}
Solution where a unary gRPC call was converted into a bi-directional streaming call
Solving the challenge
A bi-directional streaming call definition has the stream keyword next to both the request type and response type in the RPC signature of a service ...
Ask