refactor load balance client so that users can add their custom implementation
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu trong FeignClientFactoryBean và kiểm tra FeignBlockingLoadBalancerClient cùng RetryableFeignBlockingLoadBalancerClient, đặc biệt là cách chúng xử lý delegate. Xem xét cách tiếp cận được mô tả trong pull request 776 của spring-cloud-openfeign. Hoàn thành khi các triển khai Client tùy chỉnh có thể thêm các phần mở rộng, trong khi các client kết hợp dựa trên load balancing và dựa trên URL vẫn chọn đúng delegate.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
My application needs to add a custom Client like FeignBlockingLoadBalancerClient, e.g.
public class CustomFeignBlockingLoadBalancerClient implements Client {
...
}
CustomFeignBlockingLoadBalancerClient will add some extensions to FeignBlockingLoadBalancerClient, like tracing.
This works pretty well when using load-balanced clients. But when mixed with load-balanced and non-load-balanced clients, FeignClientFactoryBean hard coded to work with FeignBlockingLoadBalancerClient to get the delegate
if (client != null) {
if (client instanceof FeignBlockingLoadBalancerClient) {
// not load balancing because we have a url,
// but Spring Cloud LoadBalancer is on the classpath, so unwrap
client = ((FeignBlockingLoadBalancerClient) client).getDelegate();
}
if (client instanceof RetryableFeignBlockingLoadBalancerClient) {
// not load balancing because we have a url,
// but Spring Cloud LoadBalancer is on the classpath, so unwrap
client = ((RetryableFeignBlockingLoadBalancerClient) client).getDelegate();
}
builder.client(client);
}
see https://github.com/spring-cloud/spring-cloud-openfeign/pull/776
Describe the solution you'd like
see https://github.com/spring-cloud/spring-cloud-openfeign/pull/776
Describe alternatives you've considered
see https://github.com/spring-cloud/spring-cloud-openfeign/pull/776
Additional context
NA
This issue is created for future enhancement to loadbalancer client customization.
- Ngôn ngữ chính
- Java
- Star
- 1.3k
- Fork
- 834
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của spring-cloud/spring-cloud-openfeign
-
@RequestHeader overrides @PathVariable with the same nameCó thể làm lại được @rajeshvasa đã nhận 11 ngày trước và không có pull request nào đang mở. Đang mởwaiting-for-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
spring-cloud/spring-cloud-openfeign#1465 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
spring-cloud/spring-cloud-openfeign#1392 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
FeignClientsConfiguration$MicrometerConfiguration.class cannot be opened because it does not existĐang mởfeedback-provided
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
spring-cloud/spring-cloud-openfeign#1379 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
waiting-for-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
spring-cloud/spring-cloud-openfeign#1340 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
spring-cloud/spring-cloud-openfeign#1334 · 11 bình luận · 4 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của spring-cloud/spring-cloud-openfeign
Issue tương tự
-
Add contributing guideCó thể đã có người làm @WadekarPrashant đã nhận hôm nay. Đang mởgood first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
jenkinsci/gitea-checks-plugin#382 · 1 bình luận ·
-
enhancement infra
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
5.0.x backport bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
spring-cloud/spring-cloud-function#1569 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentCó thể đã có người làm @olegz đã nhận hôm nay. Đang mởtask
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
spring-cloud/spring-cloud-stream#3355 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
opensearch-project/opensearch-java#2342 ·
Maintainer thường phản hồi trong vòng 1 ngày