-
Notifications
You must be signed in to change notification settings - Fork 99
Description
Is your feature request related to a problem? Please describe.
Currently, the Pub/Sub client libraries offer different behavior in partial settings of client side configs (flow control, batching).
Using flow control as an example, if MaxOutstandingMessages is set by the user, does MaxOutstandingBytes stay as the default, or is it set to null because the user doesn't specify that setting?
Describe the solution you'd like
If the default settings are merged with user settings, we don't have to do anything.
If the default settings for client side configs are completely replaced by user settings, we should expose a default settings object for users to use.
When implementing these changes, we should prevent changes in behavior for existing users, but make it easier for them to use default flow control/batch settings.
Describe alternatives you've considered
Force all languages to merge settings rather than rely on current behavior, but that could negatively impact users who have grown to depend on the null values for some client side settings.
Additional context