MENU

Fun & Interesting

How To Build a Load Balancer In .NET With YARP Reverse Proxy

Milan Jovanović 24,057 lượt xem 1 year ago
Video Not Working? Fix It Now

☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic

What is a load balancer? It's a component that distributes incoming requests between multiple instances of your application. Load balancers are used when you need to scale your application horizontally and have multiple running instances. In this video, I'll show you how to implement a load balancer in .NET using the YARP reverse proxy.

Implementing an API Gateway For Microservices With YARP
https://www.milanjovanovic.tech/blog/implementing-an-api-gateway-for-microservices-with-yarp

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech

Chapters:
0:00 What is a Reverse Proxy?
1:21 Adding the Load Balancer project
2:29 Installing the YARP reverse proxy library and basic configuration
3:50 Configuring YARP as a simple reverse proxy
5:58 Demo: Running YARP as a reverse proxy
7:06 Configuring YARP as a Load Balancer
8:53 Adding additional API instances with Docker compose
10:14 Demo: Running YARP as a Load Balancer

Comment