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;
}

posted @ 2022-05-08 14:03  jiftle  阅读(997)  评论(0编辑  收藏  举报