Skip to content

cecilphillip/yarp-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Messing around with Yarp.

Building and Running

These samples have been built with .NET 5.0. Docker config files have been included, but using Docker isn't required for running any of these. The easiest way to run each sample is by navigating into the respective folder in your terminal and execute the following command:

docker-compose up

Similarly, you should be able to run each project in a solution individually with:

dotnet run

If you're using Visual Studio Code, there are some additional tasks provided for building the samples into Docker containers and running docker-compose.

Samples

  • Web API Proxying - Routes requests between different Web APIs based on request path and host header.
  • Load Balancing - Routes requests between two instances of the same service.
  • Code Configuration - Custom IProxyConfigProvider that refreshes routes and clusters configuration using Consul.

Releases

No releases published

Packages

No packages published