Messing around with Yarp.
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.
- 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.