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(pubsub): update streams section #6682

Merged
merged 2 commits into from Sep 15, 2022
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions pubsub/doc.go
Expand Up @@ -91,10 +91,11 @@ pull method.

# Streams Management

Streams used for streaming pull are managed by the gRPC connection pool setting.
Streams used for streaming pull are configured by setting sub.ReceiveSettings.NumGoroutines.
However, the total number of streams possible is capped by the gRPC connection pool setting.
By default, the number of connections in the pool is min(4,GOMAXPROCS).

If you have 4 or more CPU cores, the default setting allows 400 streams which is still a good default for most cases.
If you have 4 or more CPU cores, the default setting allows a maximum of 400 streams which is still a good default for most cases.
If you want to have more open streams (such as for low CPU core machines), you should pass in the grpc option as described below:

opts := []option.ClientOption{
Expand Down