Skip to content

Integrate with an app containing rate limiter #1854

Answered by GingerMoon
GingerMoon asked this question in Q&A
Discussion options

You must be logged in to vote

Are you migrating by running YARP in the .NET 6 app as a fallback route?

Yarp has two layers, one that integrates with routing and a lower level one for direct proxying. The routing integrated component cannot be re-ordered. However the direct proxying component can be moved up by putting it in your own custom middleware ahead of others. The trade off here is having to do your own routing and config. https://microsoft.github.io/reverse-proxy/articles/direct-forwarding.html

Thanks a lot @Tratcher , it works!

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Tratcher
Comment options

@GingerMoon
Comment options

@Tratcher
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by GingerMoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants