Get YouTube subscribers that watch and like your videos
Get Free YouTube Subscribers, Views and Likes

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

Follow
Milan Jovanović

☄ 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:   / 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/...

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

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

Subscribe for more:
   / @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

posted by laydlayout5kn