TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Microsoft YARP

222 点作者 gokhan大约 3 年前

16 条评论

bob1029大约 3 年前
I&#x27;m glad to see Microsoft supporting more low-level magic like this. I&#x27;ve written my own version of ReverseProxyMiddleware more times than I can recall... The most painful parts were always around translating between HttpClient and HttpContext. Looks like Microsoft abstracted this exact concern away under the IHttpForwarder and ForwarderHttpClientContext types.<p>Looking at the docs around this, I&#x27;d probably start w&#x2F; Direct Forwarding so I have more control over how things route:<p><a href="https:&#x2F;&#x2F;microsoft.github.io&#x2F;reverse-proxy&#x2F;articles&#x2F;direct-forwarding.html" rel="nofollow">https:&#x2F;&#x2F;microsoft.github.io&#x2F;reverse-proxy&#x2F;articles&#x2F;direct-fo...</a>
评论 #30412048 未加载
noduerme大约 3 年前
&gt;&gt; We found a bunch of internal teams at Microsoft who were either building a reverse proxy for their service or had been asking about APIs and tech for building one<p>I&#x27;m really curious, does Microsoft have a crew of anthropologists walking around to figure out which team is reinventing wheels?
评论 #30413878 未加载
评论 #30417270 未加载
评论 #30413358 未加载
评论 #30415467 未加载
评论 #30413185 未加载
davidfowl大约 3 年前
One thing I&#x27;d like to add as a potential differentiator as well is that YARP runs very well on Windows and because it&#x27;s build on ASP.NET Core, <i>can</i> run inside of IIS and directly on HTTP.sys as well (which means we can take advantage of cool features like http.sys request delegation where possible <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;reverse-proxy&#x2F;commit&#x2F;b9c13dbde9e414dfe3872533ecf26309f7ca5a3c" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;reverse-proxy&#x2F;commit&#x2F;b9c13dbde9...</a>). This means you get platform portability <i>AND</i> deep platform integration for free.
9wzYQbTYsAIc大约 3 年前
YARP is yet a another example of how C# is becoming a dominant systems language.<p>The ease with which you can build a tailor-made reverse proxy is pretty amazing.
评论 #30413091 未加载
评论 #30412026 未加载
评论 #30411456 未加载
评论 #30425649 未加载
评论 #30414054 未加载
ThinkBeat大约 3 年前
I am late to the party here.<p>What is the purpose of a reverse proxy?<p>Reading online: security, load balancing, https seems to be mentioned.<p>It appears a bit to me that a reverse proxy is not doing what a web server used to do back in the days of IIS&#x2F;Apache.<p>I see a lot of programs meant to operate on the web that use very simple http servers.
评论 #30413809 未加载
评论 #30414114 未加载
rafale大约 3 年前
How does this compare to nginx? Does it support websockets? I have an asp.net core websocket based app that need to support hundred of thousands concurrent websockets connection. I ll be taking a look at this because I don&#x27;t wanna expose Kestrel directly to the internet.
评论 #30409705 未加载
评论 #30409722 未加载
评论 #30417684 未加载
kwertyoowiyop大约 3 年前
They should’ve called it SNAP: Somebody Needs A Promotion
评论 #30409914 未加载
评论 #30409917 未加载
评论 #30417514 未加载
chaircher大约 3 年前
&quot;...narp?&quot;
评论 #30410352 未加载
评论 #30413455 未加载
dustinmoris大约 3 年前
Worth noting that YARP (or as someone has eloquently described it as PRAY) here was another Microsoft project which basically killed a previous open source project which did the same thing:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;proxykit&#x2F;ProxyKit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;proxykit&#x2F;ProxyKit</a>
评论 #30425440 未加载
opan大约 3 年前
MIT license, nice.
评论 #30412949 未加载
sandreas大约 3 年前
Reminds me of Hot Fuzz (2007): <a href="https:&#x2F;&#x2F;youtu.be&#x2F;qR8c-pfMRqA?t=61" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;qR8c-pfMRqA?t=61</a>
riffic大约 3 年前
<i>Yet Another Reverse Proxy</i>.<p>Cute.
oneplane大约 3 年前
Sometimes it feels like Microsoft and&#x2F;or C#-enjoyers just want to re-implement everything that already exists. While having many implementations to choose from if you need to select a solution to an outstanding problem is great, it makes me wonder why re-implementing something with no discernible benefit keeps eating time&#x2F;resources all over the place.<p>In similar cases of implementing reverse proxies in C, C++, Rust, Go and Java, there were generally benefits in various shapes and sizes like different security models, performance vs. capability trade-offs and integrated vs. specialised solutions. In this case, it just seems to be a &quot;we don&#x27;t want the stuff we didn&#x27;t build ourselves&quot; which is a shame considering the benefits of pooling resources on existing implementations would have.
评论 #30409358 未加载
评论 #30409910 未加载
评论 #30409216 未加载
评论 #30409199 未加载
评论 #30410022 未加载
评论 #30409621 未加载
评论 #30409881 未加载
评论 #30409245 未加载
评论 #30411306 未加载
mukundesh大约 3 年前
Only available in .NET ecosystem, got excited after I read the title, but forgot Microsoft is Microsoft.<p>&quot;YARP is a reverse proxy toolkit for building fast proxy servers in .NET using the infrastructure from ASP.NET and .NET.&quot;
评论 #30412714 未加载
评论 #30412771 未加载
Shadonototra大约 3 年前
anything that requires a giant runtime to run is a big NO for me<p>that&#x27;s why languages like GO makes more sense for that kind of use cases<p>microsoft not wanting to support CoreRT back in the days was their biggest mistake ever, shame on the people at microsoft who lobbied against it, shame!
评论 #30410590 未加载
评论 #30411366 未加载
paraxion大约 3 年前
My first thought is &quot;wasn&#x27;t that called ISA?&quot;<p>I can&#x27;t help but be wary of anything Microsoft announces that&#x27;s open source. Without engaging in MS-bashing, I always wonder what their motivation is. Then again, part of me wants to believe there&#x27;s good, avid coders working there.
评论 #30411403 未加载