microsoft / microsoft/aspire

Please open the internal interface Microsoft.Extensions.ServiceDiscovery.LoadBalance.IServiceEndPointSelector

Open
#4,890 2 comments 4 reactions 0 assignees View on GitHub
area-service-discovery
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

## Background and Motivation

`RoundRobinServiceEndpointSelector` is too simple to select a true endpoint.
For example:
A service instance usually listens multipart ports for many schemes, such as http, https, and so on.
Not only http but also grpc request was sent to service B by service A.
My custom `IServiceEndpointProvider` provides many service endpoints with multipart schemes by the same service name, but the `RoundRobinServiceEndpointSelector` can not select a true endpoint according to the URI scheme.
It is necessary to make `IServiceEndpointSelector` interface public

## Proposed API

```diff
namespace Microsoft.Extensions.ServiceDiscovery.LoadBalance;

public interface IServiceEndpointProvider
{
......
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.