question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting deadline for a gRPC call

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
phiSgrcommented, Dec 9, 2020

Have fun debugging a distributed system!

I have a problem. Let’s use Microservices! Now I have 13 distributed problems.

https://softwareengineering.stackexchange.com/a/339234

1reaction
UserNoOnecommented, Dec 9, 2020

Anyway Thanks for quick response! I was using gRPC plugin from past few months and its really helpful

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found