Skip to content

Conversation

@PapaCharlie
Copy link
Member

@PapaCharlie PapaCharlie commented Jan 9, 2025

This new endpoint on XdsClient allows one to watch a single URI using the glob collection interface. The watcher will be notified whenever the URI changes or is deleted, which allows for lightweight watches of a singular URI instead of needing to watch the entire cluster.

I was able to test this against a local Observer deployment, and validated that the URI updates and deletions are correctly propagated.

This new endpoint on `XdsClient` allows one to watch a single URI using the glob
collection interface. The watcher will be notified whenever the URI changes or
is deleted, which allows for lightweight watches of a singular URI instead of
needing to watch the entire cluster.
Copy link
Contributor

@bohhyang bohhyang left a comment

Choose a reason for hiding this comment

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

Please see if my understanding aligns with your thought: we don't want to store this single uri resource into event bus, so that it will not to be put into load balancer, nor saved to FS, as it's not needed.

@bohhyang
Copy link
Contributor

just a reminder for updating the version and changelog

@PapaCharlie PapaCharlie changed the title Allow subscribing to a single resource Allow subscribing to a single D2URI Jan 31, 2025
@bohhyang
Copy link
Contributor

lgtm. Please test along with the container PR on a test app, showing the announcement monitoring metric result.

@PapaCharlie PapaCharlie merged commit 988c403 into master Feb 5, 2025
2 checks passed
@PapaCharlie PapaCharlie deleted the pc/single branch February 5, 2025 17:27
dg-builder pushed a commit to dg-builder/rest.li that referenced this pull request Sep 2, 2025
* Allow subscribing to a single resource

This new endpoint on `XdsClient` allows one to watch a single URI using the glob
collection interface. The watcher will be notified whenever the URI changes or
is deleted, which allows for lightweight watches of a singular URI instead of
needing to watch the entire cluster.

* Address Bohan's comments

* Rebased and tested

* Add special case for deletion and corruption

* Update version and changelog

* Bump version
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.

3 participants