Set a Deadline on the GetSchema, GetTopic, and Publish Unary RPC Methods

Set a deadline of 10 minutes or less on the GetSchema, GetTopic, and Publish unary RPC methods so that you can retry a request that takes too long. When you set a deadline, a DEADLINE_EXCEEDED status code is returned if you don't receive a response within the allotted time.

Without a deadline, it is difficult for you to know if a request should be retried.

For more information and sample code, see the gRPC deadlines documentation.