dapr / go-sdk

Dapr SDK for go
Apache License 2.0
446 stars 171 forks source link

grpc: configure client keep alive for grpc connections #636

Open famarting opened 3 hours ago

famarting commented 3 hours ago

Is your feature request related to a problem? Please describe.

This feature request would help making the grpc connections to dapr more reliable. I'm suggesting to either configure a default keepalive on the grpc connections or add a config option to enable keepalives.

Specifically thinking of the workflows SDK, the grpc streamed connection would benefit from keepalives. The long lived grpc streamed connections used in workflows is key for the correct function of workflows, so my understanding is that by using keepalives we would make the grpc connection to stay healthy for longer periods of time.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

famarting commented 3 hours ago

I would create an equivalent issue for other SDKs