How To Build an API Gateway for Microservices with YARP

preview_player
Показать описание

What is an API Gateway? It's a component that distributes incoming requests between microservices. API Gateways are helpful when scaling your application horizontally and having multiple running instances. The API Gateway can also act as a load balancer in that case. However, the primary use case is routing requests between the microservices. The client calling the API Gateway doesn't know which microservice it's calling.

The .NET Weekly newsletter:

Read my Blog here:

Implementing an API Gateway For Microservices With YARP

Chapters
0:00 Microservices system overview
2:10 What is an API Gateway?
2:53 Creating the API Gateway project
4:16 Configuring YARP to work like an API Gateway
9:59 Live configuration updates with YARP
Рекомендации по теме
Комментарии
Автор

How nice it is to watch when a person has good diction and understanding of the issue. He speaks competently. Thank you very much for your work.

evgeniilewicki
Автор

I did this at my previous company as well. What I love is that if you add auth middleware before you add the proxy it then authenticates the request before it passes it downstream. You can alos add minimal API endpoints and again map them before the proxy then that allows you to override specific endpoints if you need to (for example to map the model to a new contract) and then any other endpoints on that path you did not override gets proxied.

RicusNortje
Автор

Hi Milan,
Would you be able to include a video featuring Ocelot and Yarp? Both are useful tools, with Yarp being more lightweight and Ocelot offering more features. I would recommend using them for a small project that involves handling authentication and authorization in a Gateway and passing headers to the downstream API.

sekarcse
Автор

Great video Milan! I've wanted to play with yarp a while now but was intimidated by the time it would take to learn it. You make it seem easy here.

stonefish
Автор

I've successfully used Yarp in some of my smaller projects. On a bigger projects or projects with high traffic I've used Traefik and Envoy. They seem to work faster and can process pretty highload

antonmartyniuk
Автор

8:12 Transforms followed by {}.
8:29 - [] are used. Thats important!!!

MirrorBoySkr
Автор

This was an easy to follow tutorial which is pretty rare on YouTube. Thank you very much.
Would you also please mention what the use is?

codeme
Автор

Hi Milan thanks for the video,
Can you talk about authentication and authorization options and implementations with reverse proxy? What are the best practices?

yardeZ
Автор

Would be awesome to see how this can integrate with kubernetes and also certificates including cert manager in kubernetes.

jameshancock
Автор

Hi Milan, I ran into a problem when Yarp proxying - service refuses connection. Is there any setting should be done? Thanks

esper
Автор

Great❤, looking for more Microservices related videos Milan 👌

arghakhanra
Автор

Question and any comments from you Milan, what do you think about using NGINX instead of YARP ?

Paul-uosv
Автор

Thanks for clear video, just I need to know where is the Authorization model ? and what is the correct flow for it?

suhaibshanaa
Автор

I know we can have Active health checks for the downstream endpoints... How can we get the output/status of those checks by querying YARP itself???

jefffiegel
Автор

There are 3 terms reverse proxy, api gateway and load balancer. I am confused. Can you explain the differences each of that three

sinanoral
Автор

is yarp suitable for large request per second for example 3000 reques per second?or we use from ocelot without it

saeedmoradi-gd
Автор

Great video on reverse proxy. When u scale an application to multiple instances, how does Yarp manages db call? There will be still one db for all instances of application.

sauravbhatta
Автор

Interesting library. But I would like to see benchmarks YARP vs Nginx, because I don't want to reinvent the wheel

mad_t
Автор

Have u make a video about docker-compse, how i will add this? - I have try to follow u video but i cant found out how i add docker compose?

JesperPDk
Автор

nice video man! I wonder is it possible to configure Swagger on this api gateway (Yarp)

Sara-pojd
visit shbcf.ru