Introduction to YARP a .NET Reverse Proxy
Вставка
- Опубліковано 23 тра 2023
- Introduction tutorial to YARP (Yet Another Reverse Proxy) built with .NET C#. Learn how to use YARP in an ASP.NET Core application as an api gateway, spa proxy and service extension.
Patreon 🤝 / raw_coding
Courses 📚 learning.raw-coding.dev
Shop 🛒 shop.raw-coding.dev
Discord 💬 / discord
Twitter 📣 / anton_t0shik
Twitch 🎥 / raw_coding
#aspnetcore #csharp #yarp
As always, really appreciate your simple and straight-to-the-point instructions!
Excellent explanation of YARP! I heard about YARP on the .NET Rocks episode today about ".NET 8 Migration with Jimmy Bogard". I thought I would have to convert the entire .NET Framework application to .NET (Core) but now, with this easy to configure YARP, I can easily do it one controller at a time. AWESOME!
Thank you. Explained in a easy to follow way. I appreciate your time.
Thank you for this learning video. It will be really helpful if you could explain more about AuthorizationPolicy in YARP on how to implement open/authenticated endpoints.
I can't believe that I can watch this for free!
excellent explaination!
this is really cool
In terms of perfomance and scalability, how does it compares with other reverse proxies out there?
very nice
Thanks for the video. Can you make an example that uses Swagger at the gateway level? (swagger configuration will be loaded from the underlying microservice)
Noicee
Could we apply this for modular monolith ? And can we use it without running other web applications, just add assemblies or something elses ?
why would I need this as a backend dev? Is it a kind of devops stuff but without kubernetes?
it's a reverse proxy, if you need to pass an http request along somewhere, this is how you'd do it- load balancing, api gateway, bff, service migration etc...
and there is no devops, as a backend engineer you need to know devops
I assume there is a collection somewhere that holds the health of each of the destinations for each of the clusters, but I can't seem to find it. I would like to expose that collection so I can query/record/alert on different states.... Thoughts???? Thank you!!!
Would you personally a YARP proxy work better for BFF as opposed to using Duende BFF?
how good is it compared to nginx ? I'd prefer my proxy to be c# tbh
pretty good. It gives you full control from your c# code so if you want to have some dynamic, logical approach to your proxy - its great :)
@@mazingguitar thx
You can pretty much configure everything via C#. Don't worry there. Docs require a little scrutiny sometimes, since it's fairly new lib, but they are OK in general.
We have been using it for a while now never had an issue with it. We also have nginx and the configuration issues are consistent.
Hey, what IDE is that?
Rider, it’s their beta ui
@@RawCoding Thanks. Looks dope.
finally replacement for Ocelot (RIP)
ok, but what is the benefit of replacement? is there something that you can’t do with Ocelot?
what is the benefit of using yarp comparing to the Ocelot?
I have been researching this question the whole day today. Ocelot creator can leave project for a year like he did in 21 and 22 years. Ocelot doesn't support gRPC. Yarp it's from Microsoft officially. There are also Envoy and Nginx in case you prefer ready solution with no cussing