Skip to content

Conversation

@bohhyang
Copy link
Contributor

@bohhyang bohhyang commented Jan 31, 2025

Summary

We don't want all apps to subscribe to d2 cluster / service names at startup, which could be a bit waste. This change makes the subscription lazy to happen at when first real request comes in. INDIS Server response is very fast, so it should be ok to subscribe lazily.

Test Done

UT.

@bohhyang bohhyang merged commit a3a2025 into master Jan 31, 2025
2 checks passed
@bohhyang bohhyang deleted the by/lazyDirectory branch January 31, 2025 20:01
dg-builder pushed a commit to dg-builder/rest.li that referenced this pull request Sep 2, 2025
* make xds directory lazy to subscribe names

* optimize test to get watcher with count down latch

* make watcher private
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.

4 participants