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: Rename ConnectionPool* types to ConnectionSelector* #3145

Conversation

bryce-anderson
Copy link
Contributor

@bryce-anderson bryce-anderson commented Dec 18, 2024

Motivation:

A ConnectionPoolPolicy doesn't actually control pooling, but selection from that pool. The name is also inconsistent with the thing it generates: a ConnectionSelector.

Modifications:

Rename the types to ConnectionSelector* for more consistincy.

…Selector*

Motivation:

A ConnectionPoolPolicy doesn't actually control pooling, but selection
from that pool. The name is also inconsistent with the thing it generates:
a ConnectionSelector.

Modifications:

Rename the types to ConnectionSelector* for more consistincy.
@bryce-anderson bryce-anderson force-pushed the bl_anderson/ConnectionSelectorStrategy branch from ab94661 to bf2970f Compare December 18, 2024 22:34
Comment on lines +34 to 36
* This {@link ConnectionSelectorPolicy} attempts to emulate the pooling behavior often seen in thread pools.
* Specifically it allows for the configuration of a "core pool" size which are intended to be long-lived.
* Iteration starts in the core pool at a random position and then iterates through the entire core pool before
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that there are a bunch of usages of the term 'pool' in the documentation here. I think they make sense as many of them are used in analogy to a java thread pools notion of a 'core pool', but there is room for debate.

@bryce-anderson bryce-anderson changed the title loadbalancer-experimental: Rename ConnectionPool* types to Connection… loadbalancer-experimental: Rename ConnectionPool* types to ConnectionSelector* Dec 18, 2024
@bryce-anderson
Copy link
Contributor Author

See #3138 (comment) for the discussion that motivates this PR.

@bryce-anderson bryce-anderson merged commit 79b24c2 into apple:main Dec 19, 2024
11 checks passed
@bryce-anderson bryce-anderson deleted the bl_anderson/ConnectionSelectorStrategy branch December 19, 2024 00:56
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