Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

feat: Enable server side flow control by default with the option to turn it off#1147

Merged
gcf-merge-on-green[bot] merged 6 commits intogoogleapis:masterfrom
fayssalmartanigcp:master
Nov 18, 2020
Merged

feat: Enable server side flow control by default with the option to turn it off#1147
gcf-merge-on-green[bot] merged 6 commits intogoogleapis:masterfrom
fayssalmartanigcp:master

Conversation

@fayssalmartanigcp
Copy link
Copy Markdown
Contributor

This change enables sending flow control settings automatically to the server.
If flowControl.maxMessages > 0 or flowControl.maxBytes > 0, flow control will
be enforced at the server side (in addition to the client side).

This behavior is enabled by default and SubscriberOptions.useLegacyFlowControl can be used for users who would
like to opt-out of this feature in case they encounter issues with server side
flow control.

…urn it off

This change enables sending flow control settings automatically to the server.
If flowControl.maxMessages > 0 or flowControl.maxBytes > 0, flow control will
be enforced at the server side (in addition to the client side).

This behavior is enabled by default and SubscriberOptions.useLegacyFlowControl can be used for users who would
like to opt-out of this feature in case they encounter issues with server side
flow control.
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 6, 2020
@product-auto-label product-auto-label Bot added the api: pubsub Issues related to the googleapis/nodejs-pubsub API. label Nov 6, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 6, 2020

Codecov Report

Merging #1147 (474d08b) into master (e421749) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1147   +/-   ##
=======================================
  Coverage   97.81%   97.81%           
=======================================
  Files          25       25           
  Lines       11066    11077   +11     
  Branches      557      561    +4     
=======================================
+ Hits        10824    10835   +11     
  Misses        238      238           
  Partials        4        4           
Impacted Files Coverage Δ
src/message-stream.ts 98.72% <100.00%> (+0.01%) ⬆️
src/subscriber.ts 98.88% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e421749...474d08b. Read the comment docs.

…urn it off

This change enables sending flow control settings automatically to the server.
If flowControl.maxMessages > 0 or flowControl.maxBytes > 0, flow control will
be enforced at the server side (in addition to the client side).

This behavior is enabled by default and SubscriberOptions.useLegacyFlowControl can be used for
users who would like to opt-out of this feature in case they encounter issues with server side
flow control.
@fayssalmartanigcp fayssalmartanigcp marked this pull request as ready for review November 6, 2020 01:49
@fayssalmartanigcp fayssalmartanigcp requested review from a team November 6, 2020 01:49
Copy link
Copy Markdown
Collaborator

@feywind feywind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! This sort of touches on a conversation we've been having with the team about API surfaces having some backwards compatibility.

@feywind feywind added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 15, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 15, 2020
@fayssalmartanigcp
Copy link
Copy Markdown
Contributor Author

Hi, the tests seem to be pending for abnormally long time. Can we check if they are blocked?

Thanks.

@stephenplusplus stephenplusplus added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 17, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 17, 2020
@feywind feywind added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2020
@feywind feywind added the automerge Merge the pull request once unit tests and other checks pass. label Nov 18, 2020
@gcf-merge-on-green gcf-merge-on-green Bot merged commit a9c7e0b into googleapis:master Nov 18, 2020
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Nov 18, 2020
feywind pushed a commit to feywind/nodejs-pubsub that referenced this pull request Nov 12, 2024
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: pubsub Issues related to the googleapis/nodejs-pubsub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants