-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Description
We are using an implementation of bi-directional gRPC streaming, and are interested in setting an appropriate deadline for each request. The stub is used for a long-lived/high throughput stream.
When using unary, I know we could create a new stub for each request, then use it for the unary request.
However, with streaming, the stub is used for lots and lots of requests. Is there a way to set the deadline for an existing stub on on a message by message basis? I did not see anything for streaming deadlines in the examples https://github.com/grpc/grpc-java/tree/master/examples.
In our code, we are using requestStreamObserver.onNext(requestMessage) to queue up each message for sending.