Repository navigation
Conversation
…ase 2) WatchEndpointsRequest gains a ServiceFilter: a filtered watch receives the snapshot and incremental events for its services only. Unset filter = full watch; explicitly empty = watch nothing (a node with no mesh pods). The broadcaster indexes subscribers by service, so an endpoint change fans out to its consumers instead of every node. The agent asserts its dependency set as the filter at PreListen and re-asserts it on every refresher reload (no-op when unchanged); a changed filter cancels the live stream and reconnects with a cleared resume token, since newly in-scope services were never delivered to the old stream. Filter re-assertion on reconnect follows the same discipline as endpoint re-assertion (#149). New gauge: aether.registrar.watch.filtered_subscribers. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 of proposal 004 (stacked on #158).
WatchEndpointsRequest.filter(ServiceFilter): scoped snapshot + incremental events. Unset = full watch (compat); explicitly empty = watch nothing.RegistrarRegistry.SetServiceFilter,registry.WatchScoper): filter asserted from the node dependency set at PreListen and on every dep-set change; a change cancels the stream and reconnects with the resume token cleared (a version resume would skip newly in-scope services). Re-asserted on every reconnect, same as registrations (fix(agent,registry): ghost sweep diffs against authoritative listing, not the watch cache #149).aether.registrar.watch.filtered_subscribers.🤖 Generated with Claude Code