Skip to content

Commit 7b4e2b4

Browse files
authored
docs(pubsub): update streams section (#6682)
1 parent 3280a16 commit 7b4e2b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pubsub/doc.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@ pull method.
9191
9292
# Streams Management
9393
94-
Streams used for streaming pull are managed by the gRPC connection pool setting.
94+
Streams used for streaming pull are configured by setting sub.ReceiveSettings.NumGoroutines.
95+
However, the total number of streams possible is capped by the gRPC connection pool setting.
9596
By default, the number of connections in the pool is min(4,GOMAXPROCS).
9697
97-
If you have 4 or more CPU cores, the default setting allows 400 streams which is still a good default for most cases.
98+
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.
9899
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:
99100
100101
opts := []option.ClientOption{

0 commit comments

Comments
 (0)