Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadbalancer-experimental: change host set update events #3142

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

bryce-anderson
Copy link
Contributor

Motivation:

As discussed in #3140, we need to adjust some of the LoadBalancerObserver callbacks to make the events more clear and also preserve important order characteristics.

Modifications:

  • Remove the size parameters from the onServiceDiscoveryEvent method as that required us to either precompute the size change or emit the event later than host observer creation events.
  • Change the onHostSetChanged method to take two collections: one reflecting the previous set and the new set, both after manipulations where done such as prioritization and subsetting.

Motivation:

As discussed in apple#3140, we need to adjust some of the LoadBalancerObserver
callbacks to make the events more clear and also preserve important order
characteristics.

Modifications:

- Remove the size parameters from the `onServiceDiscoveryEvent` method as
  that required us to either precompute the size change or emit the event
  later than host observer creation events.
- Change the `onHostSetChanged` method to take two collections: one reflecting
  the previous set and the new set, both after manipulations where done such
  as prioritization and subsetting.
@bryce-anderson bryce-anderson merged commit e49939f into apple:main Dec 18, 2024
11 checks passed
@bryce-anderson bryce-anderson deleted the bl_anderson/LbObserver branch December 18, 2024 21:27
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.

2 participants