You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are certain operations where it would make more sense to FailFast so a retry can be handled promptly.
For example, KeepAlive/KeepAliveOnce so that leases have a better chance of not expiring while waiting around for the channel to recover. (We are currently encountering this issue in a leader election service running on etcd)
Another option that may be better then just setting a global default is creating an OpOption to allow for more granularity. e.g. something likeWithCallOptions(opts ...grpc.CallOptions) or WithWaitForReady(bool) or WithFailFast()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There are certain operations where it would make more sense to FailFast so a retry can be handled promptly.
For example, KeepAlive/KeepAliveOnce so that leases have a better chance of not expiring while waiting around for the channel to recover. (We are currently encountering this issue in a leader election service running on etcd)
Another option that may be better then just setting a global default is creating an OpOption to allow for more granularity. e.g. something like
WithCallOptions(opts ...grpc.CallOptions)
orWithWaitForReady(bool)
orWithFailFast()
Beta Was this translation helpful? Give feedback.
All reactions