Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use TopicStats to implement getSplitBacklog (#228)
* feat: Use TopicStats to implement getSplitBacklog We use the TopicStatsService to compute the backlog size for the assigned splits in the PubsubLiteUnbounded Reader. We will refresh backlog information every ten seconds, and will use stale information for up to a minute if the topic stats serivce is unavailable. Constructing the TopicBacklogReader in SubscriberOptions is a bit awkward, but I wanted to make sure we don't need to re-resolve the subscription -> topic mapping when we split or merge the source. Otherwise we end up with a hard dependency on the admin service. * Code review changes * Change logging api to test dependency * Switch to google logger
- Loading branch information
1 parent
7deb610
commit 9a889a9
Showing
5 changed files
with
217 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters