![]() |
VOOZH | about |
dotnet add package Microsoft.Extensions.ServiceDiscovery.Yarp --version 10.7.0
NuGet\Install-Package Microsoft.Extensions.ServiceDiscovery.Yarp -Version 10.7.0
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery.Yarp" Version="10.7.0" />
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery.Yarp" Version="10.7.0" />Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery.Yarp" />Project file
paket add Microsoft.Extensions.ServiceDiscovery.Yarp --version 10.7.0
#r "nuget: Microsoft.Extensions.ServiceDiscovery.Yarp, 10.7.0"
#:package Microsoft.Extensions.ServiceDiscovery.Yarp@10.7.0
#addin nuget:?package=Microsoft.Extensions.ServiceDiscovery.Yarp&version=10.7.0Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.ServiceDiscovery.Yarp&version=10.7.0Install as a Cake Tool
The Microsoft.Extensions.ServiceDiscovery.Yarp library adds support for resolving endpoints for YARP clusters, by implementing a YARP destination resolver.
The IReverseProxyBuilder.AddServiceDiscoveryDestinationResolver() extension method configures a YARP destination resolver. To use this method, you must also configure YARP itself as described in the YARP documentation, and you must configure .NET Service Discovery via the Microsoft.Extensions.ServiceDiscovery library.
IHttpForwarderYARP supports direct forwarding of specific requests using the IHttpForwarder interface. This, too, can benefit from service discovery using the Microsoft.Extensions.ServiceDiscovery library. To take advantage of service discovery when using YARP Direct Forwarding, use the IServiceCollection.AddHttpForwarderWithServiceDiscovery method.
For example, consider the following .NET Aspire application:
var builder = WebApplication.CreateBuilder(args);
// Configure service discovery
builder.Services.AddServiceDiscovery();
// Add YARP Direct Forwarding with Service Discovery support
builder.Services.AddHttpForwarderWithServiceDiscovery();
// ... other configuration ...
var app = builder.Build();
// ... other configuration ...
// Map a Direct Forwarder which forwards requests to the resolved "catalogservice" endpoints
app.MapForwarder("/catalog/images/{id}", "http://catalogservice", "/api/v1/catalog/items/{id}/image");
app.Run();
In the above example, the YARP Direct Forwarder will resolve the catalogservice using service discovery, forwarding request sent to the /catalog/images/{id} endpoint to the destination path on the resolved endpoints.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.ServiceDiscovery.Yarp:
| Package | Downloads |
|---|---|
|
EraTech.Shared.Hosting.Settings.WebClients
Package Description |
|
|
Nabs.Launchpad.Core.Gateway
Package Description |
|
|
Aspirant.Hosting.Yarp
A custom YARP ingress resource for .NET Aspire App Host projects. |
|
|
APF.Core.Clean.ApiGateway
Package Description |
|
|
Nerdolando.Bff.AspNetCore
Library that provides a set of tools and components to help developers build Backend for Frontend (BFF) applications using ASP.NET Core. It aims to simplify the process of creating BFF layers by offering pre-built functionalities and best practices. This package is built on top of .NETCore and YARP and leverages Microsoft's OpenIdConnect library. It's been built also with best security practices in mind. |
Showing the top 13 popular GitHub repositories that depend on Microsoft.Extensions.ServiceDiscovery.Yarp:
| Repository | Stars |
|---|---|
|
dotnet/eShop
A reference .NET application implementing an eCommerce site
|
|
|
dotnet/yarp
A toolkit for developing high-performance HTTP reverse proxy applications.
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
davidfowl/TodoApp
Todo application with ASP.NET Core Blazor WASM, Minimal APIs and Authentication
|
|
|
microsoft/aspire-samples
Browse the sample apps demonstrating Aspire integration across C#, JavaScript, TypeScript, Python, Go, containers, databases, cloud, AI, and observability scenarios.
|
|
|
abpframework/eShopOnAbp
Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
|
|
|
mehmetozkaya/Design-Microservices-Architecture-with-Patterns-Principles
Design Microservices Architecture with Patterns & Principles. Design Microservices Architecture with Design Patterns, Principles and the Best Practices. How to handle millions of request with designing system for high availability, high scalability, low latency, and resilience to network failures on distributed microservices.
|
|
|
thangchung/practical-dotnet-aspire
The practical .NET Aspire builds on the coffeeshop app business domain
|
|
|
Azure-Samples/eShopOnAzure
A variant of https://github.com/dotnet/eShop that uses Azure services
|
|
|
anuviswan/LearningPoint
A repository for learning different technologies, frameworks, features......
|
|
|
dotnet-presentations/eshop-app-workshop
This workshop will teach you ASP.NET Core & .NET Aspire by building the product catalog & order placement features of the eShop reference application.
|
|
|
marinasundstrom/YourBrand
Prototype enterprise system for e-commerce and consulting services
|
|
|
PacktPublishing/Pragmatic-Microservices-with-CSharp-and-Azure
Pragmatic Microservices with C# and Azure, published by Packt
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 10.7.0 | 6,325 | 6/9/2026 | |
| 10.6.0 | 64,891 | 5/12/2026 | |
| 10.5.0 | 76,936 | 4/15/2026 | |
| 10.4.0 | 85,304 | 3/10/2026 | |
| 10.3.0 | 64,502 | 2/10/2026 | |
| 10.2.0 | 63,697 | 1/13/2026 | |
| 10.1.0 | 67,234 | 12/9/2025 | |
| 10.0.0 | 76,551 | 11/11/2025 | |
| 9.5.2 | 55,602 | 10/23/2025 | |
| 9.5.1 | 34,813 | 10/3/2025 | |
| 9.5.0 | 139,489 | 9/25/2025 | |
| 9.4.2 | 43,532 | 9/2/2025 | |
| 9.4.1 | 22,933 | 8/12/2025 | |
| 9.4.0 | 35,817 | 7/29/2025 | |
| 9.3.1 | 68,489 | 6/10/2025 | |
| 9.3.0 | 52,182 | 5/19/2025 | |
| 9.2.1 | 45,309 | 4/24/2025 | 9.2.1 is deprecated because it is no longer maintained. |
| 9.2.0 | 20,410 | 4/10/2025 | 9.2.0 is deprecated because it is no longer maintained. |
| 9.1.0 | 60,128 | 2/25/2025 | 9.1.0 is deprecated because it is no longer maintained. |
| 9.0.0 | 162,620 | 11/12/2024 | 9.0.0 is deprecated because it is no longer maintained. |