Setting deadline for a gRPC call
See original GitHub issueIs your feature request related to a problem? Please describe.
Whenever I trigger high amount of server stream gRPC calls towards our server, I’m seeing
Server signaled RPC failed io.grpc.StatusRuntimeException: INTERNAL: context deadline exceeded
Describe the solution you’d like Is there a way to set deadline for gRPC call in client end, something like this
grpc("sample server")
.serverStream("fetchInfo")
.start(SampleServerStreamRequest.defaultData)
.withDeadlineAfter(deadlineMs, TimeUnit.MILLISECONDS)
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
gRPC and Deadlines
Deadlines allow gRPC clients to specify how long they are willing to wait for an RPC to complete before the RPC is terminated...
Read more >ZIO gRPC and Deadlines - ScalaPB
When you use a gRPC it is a very important to set deadlines. In gRPC, deadlines are absolute timestamps that tell our system...
Read more >Deadlines — gRPC Chatroom Workshop documentation
In gRPC, you can set a deadline to a call, e.g., no more than 1 second in total. When the deadline has exceeded,...
Read more >How does deadline work? · Issue #1495 · grpc/grpc-java
A deadline is a fixed point in time, like 8:10 AM on Feb 29th. A timeout is a relative time, like 3 seconds....
Read more >Specify a deadline with Go gRPC for peer to peer connections.
I'm not sure I understand the questions. You have a timeout in Dial already, so that can't hang for more than 20 seconds...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Have fun debugging a distributed system!
https://softwareengineering.stackexchange.com/a/339234
Anyway Thanks for quick response! I was using gRPC plugin from past few months and its really helpful