jorarJ
ZITADEL3mo ago
jorar

Zitadel cloud grpc client recommended keepalive parameters

Hi,

We are on a zitadel cloud pro plan, we use the zitadel-go pkg to communicate with our zitadel instance, when we create a new client (https://github.com/zitadel/zitadel-go/blob/45e1206d57a1e78fea9afcdca37c6bda1463a10c/pkg/client/client.go#L123) what are the recommended keepalive parameters for the client? (https://pkg.go.dev/google.golang.org/grpc/keepalive) I'm getting responses like "rpc error: code = Unavailable desc = error reading from server: read tcp xx.xx.xx.xx:56690->xx.xx.xx.xx:443: read: connection reset by peer" after sometime if I create the client without any grpc options, so my guess is that we should be passing the keepalive option ( https://pkg.go.dev/google.golang.org/grpc#WithKeepaliveParams)

Best,
Jorge
GitHub
ZITADEL Go - The official client library of ZITADEL for an easy integration into your Go project. - zitadel/zitadel-go
Was this page helpful?