Playing with Yarp reverse proxy
In this demo, i m using Yarp in order to build a lightweight app gateway intercepting requests and redirecting them to backend microservices.
The solution is organized as follows :
AppGateway
: a webapi with yarp integration and configurationCustomersMicroservice
: a webapi listing fake customersOrdersMicroservice
: a webapi listing fake ordersProductsMicroservice
: a webapi listing fake productsThe solution is using Tye in order to configure and run microservices and app gateway.
In order to run the solution :
1️⃣ type
Tye Run
in your favorite terminal2️⃣ browse the url
https://localhost:5000/api
3️⃣ refresh the url to see Yarp in action
Tools
: net 8.0, yarp, tye