Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(pubsublite): recommendation for timeout settings #4389

Merged
merged 2 commits into from Jul 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions pubsublite/pscompat/settings.go
Expand Up @@ -65,7 +65,8 @@ type PublishSettings struct {

// The maximum time that the client will attempt to open a publish stream
// to the server. If Timeout is 0, it will be treated as
// DefaultPublishSettings.Timeout. Otherwise must be > 0.
// DefaultPublishSettings.Timeout. Otherwise must be > 0. It is not
// recommended to set this below 2 minutes.
//
// If your application has a low tolerance to backend unavailability, set
// Timeout to a lower duration to detect and handle. When the timeout is
Expand Down Expand Up @@ -184,7 +185,8 @@ type ReceiveSettings struct {

// The maximum time that the client will attempt to open a subscribe stream
// to the server. If Timeout is 0, it will be treated as
// DefaultReceiveSettings.Timeout. Otherwise must be > 0.
// DefaultReceiveSettings.Timeout. Otherwise must be > 0. It is not
// recommended to set this below 2 minutes.
//
// If your application has a low tolerance to backend unavailability, set
// Timeout to a lower duration to detect and handle. When the timeout is
Expand Down