Skip to content

Conversation

@Ferioney
Copy link
Contributor

Implement client specific LoadBalancedRetryFactory

Implement client specific LoadBalancedRetryFactory
@OlgaMaciaszek
Copy link
Collaborator

@Ferioney - thanks for submitting this. Will review on Monday.

Copy link
Collaborator

@OlgaMaciaszek OlgaMaciaszek left a comment

Choose a reason for hiding this comment

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

@Ferioney thanks for submitting the PR. Please see the comment I've added and adjust the PR.


@Override
public LoadBalancedRetryPolicy createRetryPolicy(String service, ServiceInstanceChooser serviceInstanceChooser) {
final LoadBalancerProperties properties = clientLoadBalancerProperties.getClientLoadBalancerProperties(service)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Ferioney , as discussed here, we will wait with resolving properties per client in general till the feature is implemented in Boot, so the changes in this class should be removed. Specifcally, the issue here is that either all properties are resolved "per client" for a given client or none, while in the final version, we would want it to be possible to make that distinction on property level. For now, a simpler implementation only for the specific properties can be added to fix this issue, similarly to what is being done here and here.

@OlgaMaciaszek OlgaMaciaszek removed their assignment Oct 27, 2021
@OlgaMaciaszek
Copy link
Collaborator

Closing in favour of #1028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants