diff options
author | Vijay Pai <vpai@google.com> | 2017-03-23 16:19:00 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2017-05-02 09:26:12 -0700 |
commit | eea8cf0fe3a836b78e9ba122a01f6f1552ad8402 (patch) | |
tree | 5e417bb6bc0a3c872281cb6ba6f81b8a829ace99 /src/proto | |
parent | 6626a86923aaebae86aeeba151c99ed3089d02fc (diff) |
Add QPS tests for one-sided streaming
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/grpc/testing/control.proto | 3 | ||||
-rw-r--r-- | src/proto/grpc/testing/services.proto | 17 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/proto/grpc/testing/control.proto b/src/proto/grpc/testing/control.proto index acee86678d..02b156d0cd 100644 --- a/src/proto/grpc/testing/control.proto +++ b/src/proto/grpc/testing/control.proto @@ -52,6 +52,9 @@ enum ServerType { enum RpcType { UNARY = 0; STREAMING = 1; + STREAMING_FROM_CLIENT = 2; + STREAMING_FROM_SERVER = 3; + STREAMING_BOTH_WAYS = 4; } // Parameters of poisson process distribution, which is a good representation diff --git a/src/proto/grpc/testing/services.proto b/src/proto/grpc/testing/services.proto index 969782d656..85949abd86 100644 --- a/src/proto/grpc/testing/services.proto +++ b/src/proto/grpc/testing/services.proto @@ -42,9 +42,22 @@ service BenchmarkService { // The server returns the client payload as-is. rpc UnaryCall(SimpleRequest) returns (SimpleResponse); - // One request followed by one response. - // The server returns the client payload as-is. + // Repeated sequence of one request followed by one response. + // Should be called streaming ping-pong + // The server returns the client payload as-is on each response rpc StreamingCall(stream SimpleRequest) returns (stream SimpleResponse); + + // Single-sided unbounded streaming from client to server + // The server returns the client payload as-is once the client does WritesDone + rpc StreamingFromClient(stream SimpleRequest) returns (SimpleResponse); + + // Single-sided unbounded streaming from server to client + // The server repeatedly returns the client payload as-is + rpc StreamingFromServer(SimpleRequest) returns (stream SimpleResponse); + + // Two-sided unbounded streaming between server to client + // Both sides send the content of their own choice to the other + rpc StreamingBothWays(stream SimpleRequest) returns (stream SimpleResponse); } service WorkerService { |