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

feat(pubsub): add client ID to initial streaming pull request #10436

Merged
merged 6 commits into from
Jun 26, 2024

Conversation

hongalex
Copy link
Member

Similar to googleapis/java-pubsub#77, this will improve ordering key affinity and allow Pub/Sub servers to determine if streams are opened from the same subscriber client instance.

@hongalex hongalex requested review from shollyman and a team as code owners June 25, 2024 22:22
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Jun 25, 2024
// clientID to be used across all streaming pull connections that are created.
// This indicates to the server that any guarantees made for a stream that
// disconnected will be made for the stream that is created to replace it.
clientID string
Copy link
Contributor

Choose a reason for hiding this comment

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

are there use cases for making this visible to users?

Copy link
Member Author

Choose a reason for hiding this comment

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

In Java the field is marked private, so until that changes, I'm incline to leave as-is.

@hongalex hongalex enabled auto-merge (squash) June 26, 2024 20:29
@hongalex hongalex merged commit a3d70ed into googleapis:main Jun 26, 2024
10 checks passed
@hongalex hongalex deleted the pubsub-stream-client-id branch June 26, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants