pubsub: poor documentation regarding flow control ReceiveSettings #5012
Labels
api: pubsub
Issues related to the Pub/Sub API.
type: docs
Improvement to the documentation for an API.
Client
PubSub
Issue
Prior to 1.9, the behavior of the PubSub client was that
MaxOutstandingMessages
andMaxOutstandingBytes
were ignored ifSynchronous
was changed totrue
.The behavior changed such that the client passes server-side flow control configuration[0] to control the messages received. This change fixes some of the necessity of
Synchronous: true
, but the documentation implies that the behavior is much different.Specifically, these sections:
Additionally, some of the official documentation referenced (cloud.google.com/pubsub/docs) is a bit misleading (since not all clients use server-side flow control) but the documentation for this library does not note this discrepancy.
Thanks!
0: https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#streamingpullrequest
Additional context
PR for the 1.9 change: #3154
Prior discussion: #1485 which points to https://cloud.google.com/pubsub/docs/pull#streamingpull_dealing_with_large_backlogs_of_small_messages
The text was updated successfully, but these errors were encountered: