grpc-ecosystem / grpc-spring

Spring Boot starter module for gRPC framework.
https://grpc-ecosystem.github.io/grpc-spring/
Apache License 2.0
3.48k stars 812 forks source link

Question related to gRPC retry #932

Closed banandh closed 1 year ago

banandh commented 1 year ago

Hi,

Is there any support available in the grpc springboot starter to enable the retry based on gRPC status?

Ex: https://github.com/grpc/grpc-java/blob/v1.35.0/examples/src/main/java/io/grpc/examples/retrying/RetryingHelloWorldClient.java#L74

On the managedChannel builder , it registered a serviceonfig which specifies the retry config details.

How to add these configs in the grpc-spring-boot-starter client

ST-DDT commented 1 year ago

Currently you have to use a GrpcChannelConfigurer, but we have a stale PR that tries to add support for it.

https://github.com/yidongnan/grpc-spring-boot-starter/pull/574

banandh commented 1 year ago

Thanks @ST-DDT . I'm using 2.14.0 version of grpc springboot starter but i dont see Method, Name Config and mentioned changes.

Please help to provide the version details, and also if you have any reference how to configure this custom config please help to share.

ST-DDT commented 1 year ago

The PR is not yet added.

banandh commented 1 year ago

Its almost 2 years , any plan to add the changes? Tentatively when can we expect the retry support?

ST-DDT commented 1 year ago

Its almost 2 years , any plan to add the changes? Tentatively when can we expect the retry support?

When you put in some work. Or pay me/us to do it for you.