gRPC入门-双向流式通信
grpc真的是很强大
syntax = "proto3";
package com.mattie.netty.grpc;
option java_package = "com.mattie.netty.grpc";
option java_outer_classname = "HelloWorldProtos";
service HelloService {
//双向流
rpc biStream (stream StreamReq) returns (stream StreamResp) {};
}
//双向流
message StreamReq {
string req_info = 1;
}
message StreamResp {
string resp_info = 1;
}