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

Pubsub source open more transport channels #92

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

istreeter
Copy link
Contributor

Previously the pubsub SDK opened just a single transport channel (roughly equivalent to a TCP channel).

Some snowplow apps we need to batch up a very large number of events from the source before acking. In those circumstances it is good to open more streaming pulls (a type of RPC) to keep the pubsub subscription healthy. But to open more streaming pulls we also need to open more transport channels (TCP channels) to support all the RPCs.

This commit adds a new config parameter maxPullsPerTransportChannel. The default value 16 is good for most apps.

Previously the pubsub SDK opened just a single transport channel
(roughly equivalent to a TCP channel).

Some snowplow apps we need to batch up a very large number of events
from the source before acking.  In those circumstances it is good to
open more streaming pulls (a type of RPC) to keep the pubsub
subscription healthy.  But to open more streaming pulls we also need to
open more transport channels (TCP channels) to support all the RPCs.

This commit adds a new config parameter `maxPullsPerTransportChannel`.
The default value 16 is good for most apps.
Copy link
Collaborator

@oguzhanunlu oguzhanunlu left a comment

Choose a reason for hiding this comment

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

👍

@istreeter istreeter merged commit 1aec144 into develop Oct 1, 2024
1 check passed
@istreeter istreeter deleted the pubsub-transport-channels branch October 1, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants