Set StreamingPullRequest#client_id with UUID scoped to client instance #5924
Labels
api: pubsub
Issues related to the Pub/Sub API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
The problem
In this client, stream disconnects and reconnects are handled seamlessly. From the user perspective, the subscriber still exists and nothing has changed. However, it is possible for ordering key affinity to change in these situations. A better experience for users would minimize the churn in affinity when streams disconnect and reconnect.
Describe the solution you'd like
Set the
client_id
field onStreamingPullRequest
to a UUID value scoped to the client instance. All streams coming from the client will use the same ID.See googleapis/java-pubsub#77 for example implementation.
The text was updated successfully, but these errors were encountered: