Grpc java retry documentation

88 views
Skip to first unread message

David M

unread,
Nov 5, 2018, 3:55:42 PM11/5/18
to grpc.io
I am trying to find a document describing grpc java retry behavioral.
It's not clear what is already implemented.

Thanks!

David M

unread,
Nov 5, 2018, 7:13:34 PM11/5/18
to grpc.io
Also, is it possible to retry on DEADLINE_EXCEEDED like this:
 
"retryableStatusCodes": [
"UNAVAILABLE",
"RESOURCE_EXHAUSTED",
"DEADLINE_EXCEEDED"
]

Penn (Dapeng) Zhang

unread,
Nov 6, 2018, 2:19:35 PM11/6/18
to grpc.io
Retry is already implemented (except hedging support) in v1.16.1, but there is no other document than the spec yet, because there are some caveats for the time being: (1) users need manage to disable census stats and tracing when enabling retry,(2) there are some caveats for using service config. In next release, v1.17.0, enabling retry will automatically disable census.

As for DEADLINE_EXCEEDED, it does not make sense to retry at the library level, because a retry attempt would immediately exceed the deadline of the RPC. Users could implement application level retry for DEADLINE_EXCEEDED by themselves by making a new RPC.

On Monday, November 5, 2018 at 12:55:42 PM UTC-8, David M wrote:

David M

unread,
Nov 26, 2018, 6:16:02 PM11/26/18
to grpc.io
Penn, thanks for the answer! Does it make sense to introduce another, shorter "deadline" for individual attempt and let grpc code to retry the request while keeping original deadline for the whole request possibly consisting of several retries ?

ramachandran...@gmail.com

unread,
Aug 22, 2019, 12:02:21 PM8/22/19
to grpc.io
Hi Penn, is there any update on this? We are seeing if we can start using the retry mechanism in our Java clients. 
Thanks.


On Tuesday, November 6, 2018 at 11:19:35 AM UTC-8, Penn (Dapeng) Zhang wrote:
Reply all
Reply to author
Forward
0 new messages